/*
Theme Name:   Astra Child — Journal of Sport & Disability
Theme URI:    https://jsportdisability.com
Description:  Child theme of Astra for the Journal of Sport & Disability. Holds the journal's own styles and templates so Astra updates never overwrite them.
Author:       Journal of Sport & Disability
Template:     astra
Version:      1.0.0
Text Domain:  astra-child
*/

/* Design tokens from the approved mockup (docs/design/shared.css, direction A). */
:root {
	--jsd-gold: #E9A23B;
	--jsd-gold-ink: #8E5A0E;
	--jsd-gold-tint: #FBF2E3;
	--jsd-navy: #023C5B;
	--jsd-navy-deep: #012A40;
	--jsd-ink: #1B1F29;
	--jsd-slate: #4A5060;
	--jsd-line: #DDE2E8;
	--jsd-mist: #F2F5F8;
	--jsd-body: 17px;   /* the one body text size for the whole site */
	--jsd-small: 14px;  /* captions and labels only */
}

/* =========================================================================
   Journal components (shortcodes in mu-plugins/jsd-frontend.php).
   Body text keeps the one site size (--jsd-body); only labels use --jsd-small.
   ========================================================================= */
.jsd-page { width: 100%; padding: 8px 0 72px; }
.jsd-page h1 { font-size: 38px; line-height: 1.2; margin: 10px 0 18px; color: var(--jsd-ink); }
.jsd-label { font-size: var(--jsd-small); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.jsd-eyebrow { color: var(--jsd-gold-ink); display: inline-block; }
.jsd-crumbs { font-size: var(--jsd-small); color: var(--jsd-slate); margin: 0 0 14px; }
.jsd-crumbs a { color: var(--jsd-slate); }
.jsd-authors { font-size: var(--jsd-body); margin: 0 0 6px; }
.jsd-authors a { font-weight: 500; color: var(--jsd-navy); }
.jsd-in-issue { color: var(--jsd-slate); margin: 0 0 30px; }
.jsd-in-issue a { color: var(--jsd-navy); }
.jsd-section-title { font-size: 22px; padding-top: 22px; border-top: 2px solid var(--jsd-ink); margin: 8px 0 14px; }
.jsd-abstract { max-width: 44em; }
.jsd-abstract p { font-size: var(--jsd-body); }
.jsd-keywords { color: var(--jsd-slate); }
.jsd-keywords b { color: var(--jsd-ink); font-weight: 500; }

/* buttons */
.jsd-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.4em; border-radius: 4px;
	font-weight: 500; font-size: var(--jsd-body); line-height: 1.2; text-decoration: none; border: 2px solid transparent; }
.jsd-btn-gold, .jsd-btn-gold:visited { background: var(--jsd-gold); color: var(--jsd-ink); }
.jsd-btn-gold:hover, .jsd-btn-gold:focus { background: #F2B455; color: var(--jsd-ink); }
.jsd-btn-block { display: flex; width: 100%; }
.jsd-note { font-size: var(--jsd-small); color: var(--jsd-slate); margin: 8px 0 0; }
.jsd-btn-small { font: inherit; font-size: var(--jsd-small); font-weight: 500; background: none; border: 2px solid var(--jsd-navy);
	color: var(--jsd-navy); padding: 6px 14px; border-radius: 4px; cursor: pointer; }
.jsd-btn-small:hover { background: var(--jsd-navy); color: #fff; }

/* side card */
.jsd-side { border: 1px solid var(--jsd-line); border-top: 6px solid var(--jsd-gold); padding: 26px; background: #fff; }
.jsd-details { margin: 22px 0 0; }
.jsd-details div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--jsd-line); }
.jsd-details dt { color: var(--jsd-slate); font-weight: 400; }
.jsd-details dd { margin: 0; text-align: right; font-weight: 500; }
.jsd-details a { color: var(--jsd-navy); }

/* citation */
.jsd-cite { margin-top: 36px; background: var(--jsd-mist); padding: 24px 26px; border-left: 4px solid var(--jsd-navy); }
.jsd-cite .jsd-label { color: var(--jsd-slate); margin: 0 0 10px; }
.jsd-cite-text { margin: 0 0 14px; }
.jsd-cite-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.jsd-cite-download { font-size: var(--jsd-small); color: var(--jsd-slate); }
.jsd-cite-download a { font-weight: 500; color: var(--jsd-navy); }

/* licence */
.jsd-license { margin-top: 24px; font-size: var(--jsd-small); color: var(--jsd-slate); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.jsd-license-badge { font-weight: 700; border: 2px solid var(--jsd-ink); padding: 2px 8px; border-radius: 3px; letter-spacing: .04em; }
.jsd-license-badge a { color: var(--jsd-ink); text-decoration: none; }

/* focus */
.jsd-page a:focus-visible, .jsd-page button:focus-visible { outline: 3px solid var(--jsd-gold); outline-offset: 3px; }

@media (max-width: 921px) {
	.jsd-page h1 { font-size: 30px; }
}

/* Elementor template pieces */
.jsd-title .elementor-heading-title { font-size: 38px; line-height: 1.2; font-weight: 700; color: var(--jsd-ink); margin: 6px 0 14px; }
.jsd-mobile-pdf { margin: 0 0 24px; }
@media (min-width: 1025px) { .jsd-sticky { position: sticky; top: 24px; } }
@media (max-width: 921px) { .jsd-title .elementor-heading-title { font-size: 30px; } }

/* Issue page header: navy band across the full window width (no horizontal scroll). */
.jsd-issue-hero { background: var(--jsd-navy); color: #fff; box-shadow: 0 0 0 100vmax var(--jsd-navy); clip-path: inset(0 -100vmax); margin: -8px 0 48px; padding: 44px 0; }
.jsd-issue-hero-in { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; }
.jsd-issue-hero .jsd-cover { width: 100%; height: auto; box-shadow: 0 18px 40px rgba(0,0,0,.35); border-top: 6px solid var(--jsd-gold); }
.jsd-issue-hero .jsd-crumbs, .jsd-issue-hero .jsd-crumbs a { color: rgba(255,255,255,.75); }
.jsd-issue-hero .jsd-label { color: var(--jsd-gold); display: block; margin-top: 8px; }
.jsd-issue-hero h1 { color: #fff; font-size: 40px; line-height: 1.15; margin: 8px 0 12px; }
.jsd-issue-hero p { color: rgba(255,255,255,.88); margin: 0; }

/* Table of contents: printed-journal style with dotted leaders. */
.jsd-toc { border-top: 2px solid var(--jsd-ink); }
/* "Contents" heading directly above the list: one line only (the list's). */
.elementor-widget-shortcode:has(+ .jsd-toc) .jsd-section-title { border-top: 0; padding-top: 0; }
.jsd-toc-row { padding: 18px 0; border-bottom: 1px solid var(--jsd-line); }
.jsd-toc-type { display: block; color: var(--jsd-gold-ink); margin-bottom: 4px; }
.jsd-toc-line { display: flex; align-items: baseline; gap: 12px; }
.jsd-toc-title { font-weight: 500; color: var(--jsd-navy); text-decoration: none; }
.jsd-toc-title:hover { text-decoration: underline; }
.jsd-toc-leader { flex: 1; min-width: 32px; border-bottom: 2px dotted #AEB6C2; transform: translateY(-5px); }
.jsd-toc-pdf { font-size: var(--jsd-small); font-weight: 700; letter-spacing: .06em; color: var(--jsd-gold-ink); text-decoration: none; white-space: nowrap; }
.jsd-toc-authors { color: var(--jsd-slate); margin-top: 2px; }

/* Issue cards (previous issues, archive) */
.jsd-other-issues, .jsd-volume { margin-top: 56px; }
.jsd-volume:first-child { margin-top: 0; }
.jsd-volume-year { color: var(--jsd-slate); font-weight: 400; }
.jsd-issue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 32px; }
/* Astra underlines links in page content (.ast-single-post .entry-content a); journal cards/buttons don't. */
.jsd-issue-card, .jsd-toc-title,
.ast-single-post .entry-content :is(a.jsd-issue-card, a.jsd-toc-title, a.jsd-toc-pdf, a.jsd-btn) { text-decoration: none; }
.jsd-issue-card { display: flex; flex-direction: column; gap: 4px; color: var(--jsd-ink); }
.jsd-issue-card .jsd-cover { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-top: 4px solid var(--jsd-gold); box-shadow: 0 8px 20px rgba(1,42,64,.18); margin-bottom: 10px; transition: transform .2s; }
.jsd-issue-card:hover .jsd-cover { transform: translateY(-3px); }
.jsd-issue-card-name { font-weight: 500; }
.jsd-issue-card:hover .jsd-issue-card-name { color: var(--jsd-navy); text-decoration: underline; }
.jsd-issue-card-meta { font-size: var(--jsd-small); color: var(--jsd-slate); }
.jsd-cover-empty { display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; background: var(--jsd-navy); color: #fff; aspect-ratio: 3 / 4; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .jsd-issue-card .jsd-cover { transition: none; } }

/* Author page */
.jsd-author-head, .jsd-author-articles { max-width: 880px; }
.jsd-author-head { margin-bottom: 40px; }
.jsd-author-head h1 { margin: 8px 0 10px; }
.jsd-author-affiliation { color: var(--jsd-slate); margin: 0 0 6px; }
.jsd-author-orcid { margin: 0; }
.jsd-author-orcid a { color: var(--jsd-navy); }
.jsd-orcid-badge { display: inline-block; width: 20px; height: 20px; margin-right: 6px; vertical-align: -4px; } /* official ORCID iD icon (svg) */
.jsd-toc-issue { font-size: var(--jsd-small); margin-top: 4px; }
.jsd-toc-issue a { color: var(--jsd-slate); }
.elementor-widget-shortcode:has(+ .jsd-toc) .jsd-section-title,
.jsd-author-articles .jsd-section-title { border-top: 0; padding-top: 0; }

/* =========================================================================
   Home page (Elementor page, tools/elementor/d4-home.php)
   ========================================================================= */
.jsd-h2 .elementor-heading-title { font-size: 30px; line-height: 1.2; font-weight: 700; color: var(--jsd-ink); margin: 0 0 12px; }
.jsd-eyebrow-text p { font-size: var(--jsd-small); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--jsd-gold-ink); margin: 0 0 6px; }
.jsd-intro-text p { color: var(--jsd-slate); } /* full width (user's choice): short intros stay on one line */
.jsd-more { font-weight: 500; color: var(--jsd-navy); display: inline-block; margin-top: 16px; }

/* hero */
.jsd-hero { color: #fff; }
.jsd-hero-eyebrow p { font-size: var(--jsd-small); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--jsd-gold); margin: 0; }
.jsd-hero-title .elementor-heading-title { color: #fff; font-size: 54px; line-height: 1.1; font-weight: 700; letter-spacing: -.01em; margin: 14px 0 18px; max-width: 12em; }
.jsd-hero-text p { color: rgba(255,255,255,.9); max-width: 36em; margin: 0 0 6px; }
.jsd-hero-actions { margin-top: 24px; }

/* Elementor buttons in the journal style */
.jsd-el-btn-gold .elementor-button, .jsd-el-btn-navy .elementor-button, .jsd-el-btn-outline-light .elementor-button, .jsd-el-btn-outline-navy .elementor-button {
	font-family: inherit; font-size: var(--jsd-body); font-weight: 500; line-height: 1.2; padding: .8em 1.4em; border-radius: 4px; border: 2px solid transparent; }
.jsd-el-btn-gold .elementor-button { background: var(--jsd-gold); color: var(--jsd-ink); }
.jsd-el-btn-gold .elementor-button:hover, .jsd-el-btn-gold .elementor-button:focus { background: #F2B455; color: var(--jsd-ink); }
.jsd-el-btn-navy .elementor-button { background: var(--jsd-navy); color: #fff; }
.jsd-el-btn-navy .elementor-button:hover, .jsd-el-btn-navy .elementor-button:focus { background: var(--jsd-navy-deep); color: #fff; }
.jsd-el-btn-outline-light .elementor-button { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.jsd-el-btn-outline-light .elementor-button:hover, .jsd-el-btn-outline-light .elementor-button:focus { background: #fff; color: var(--jsd-navy); }
.jsd-el-btn-outline-navy .elementor-button { background: transparent; color: var(--jsd-navy); border-color: var(--jsd-navy); }
.jsd-el-btn-outline-navy .elementor-button:hover, .jsd-el-btn-outline-navy .elementor-button:focus { background: var(--jsd-navy); color: #fff; }
.elementor-button:focus-visible { outline: 3px solid var(--jsd-gold); outline-offset: 3px; }

/* current issue block */
.jsd-current { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; width: 100%; }
.jsd-current-cover .jsd-cover { width: 100%; height: auto; box-shadow: 0 18px 40px rgba(1,42,64,.25); border-top: 6px solid var(--jsd-gold); }
.jsd-current-meta { margin: 16px 0 0; font-size: var(--jsd-small); color: var(--jsd-slate); }
.jsd-current-title { font-size: 30px; line-height: 1.2; margin: 8px 0 24px; }
.jsd-current-title a { color: var(--jsd-ink); text-decoration: none; }
.jsd-current-title a:hover { color: var(--jsd-navy); text-decoration: underline; }

/* call for papers band */
.jsd-cfp > .e-con-inner { border-left: 6px solid var(--jsd-gold); }
.e-con.jsd-cfp > .e-con-inner { padding-left: 40px; } /* .e-con: Elementor's own padding rule otherwise wins */
.jsd-cfp p { margin: 0; max-width: 46em; }

/* facts list */
.jsd-facts { margin: 0; padding: 0; border-top: 2px solid var(--jsd-ink); }
.jsd-facts div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--jsd-line); }
.jsd-facts dt { font-weight: 500; }
.jsd-facts dd { margin: 0; color: var(--jsd-slate); }

/* thematic area cards (Elementor icon box) */
.jsd-theme-grid { margin-top: 24px; }
.jsd-theme-card { background: #fff; border: 1px solid var(--jsd-line); border-top: 4px solid var(--jsd-gold); padding: 24px 22px 26px; transition: transform .2s, box-shadow .2s; height: 100%; }
.jsd-theme-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(1,42,64,.12); }
.jsd-theme-card .elementor-icon { font-size: 28px; color: var(--jsd-navy); fill: var(--jsd-navy); }
.jsd-theme-card .elementor-icon-box-icon { margin-bottom: 12px; }
.jsd-theme-card .elementor-icon-box-title { font-size: 20px; font-weight: 700; color: var(--jsd-ink); margin: 0 0 6px; }
.jsd-theme-card .elementor-icon-box-description { font-size: var(--jsd-body); color: var(--jsd-slate); margin: 0; }
@media (prefers-reduced-motion: reduce) { .jsd-theme-card { transition: none; } .jsd-theme-card:hover { transform: none; } }

/* partners: logos in colour, grey on hover (user's choice) */
.jsd-partners { border-top: 1px solid var(--jsd-line); }
.jsd-partners-label p { color: var(--jsd-slate); margin-bottom: 18px; }
.elementor-widget-image.jsd-partner-logo img { height: 72px; width: auto; max-width: none; transition: filter .2s, opacity .2s; }
.elementor-widget-image.jsd-partner-logo { width: auto; }
.elementor-widget-image.jsd-partner-logo img:hover { filter: grayscale(1); opacity: .7; }
/* The two square logos (Paralympic Committee, Federation) have built-in margins: shown larger than the wide Thera+ logo. */
.elementor-widget-image.jsd-partner-logo img:is([src*="epe_logo"], [src*="eaoamea_logo"]) { height: 120px; }
@media (max-width: 544px) { .elementor-widget-image.jsd-partner-logo img:is([src*="epe_logo"], [src*="eaoamea_logo"]) { height: 100px; } }

@media (max-width: 921px) {
	.jsd-hero-title .elementor-heading-title { font-size: 38px; }
	.jsd-current { grid-template-columns: 1fr; gap: 32px; }
	.jsd-current-cover { max-width: 220px; }
	.e-con.jsd-cfp > .e-con-inner { padding-left: 24px; }
}

/* =========================================================================
   Header (ElementsKit template): sticky, navy glass
   ========================================================================= */
/* The glass sits on a ::before layer behind the header: a backdrop-filter on the header itself would
   trap the fixed off-canvas mobile menu inside the header box. */
.ekit-template-content-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 999;
	isolation: isolate;
}
.ekit-template-content-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--jsd-navy); /* solid fallback */
	pointer-events: none;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.ekit-template-content-header::before {
		background: rgba(2, 60, 91, .78);
		-webkit-backdrop-filter: blur(14px) saturate(160%);
		backdrop-filter: blur(14px) saturate(160%);
		border-bottom: 1px solid rgba(255, 255, 255, .12);
	}
}
@media (prefers-reduced-transparency: reduce) {
	.ekit-template-content-header::before { background: var(--jsd-navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Shadow once the header is stuck (Chrome/Edge; elsewhere it simply stays without shadow). */
@supports (container-type: scroll-state) {
	.ekit-template-content-header { container-type: scroll-state; container-name: jsd-header; }
	@container jsd-header scroll-state(stuck: top) {
		.jsd-site-header { box-shadow: 0 6px 20px rgba(1, 42, 64, .25); }
	}
}
.jsd-site-header { transition: box-shadow .2s; }

.jsd-logo { display: inline-flex; align-items: center; }
.jsd-logo img.jsd-logo-img { height: 54px; width: auto; max-width: none; display: block; }

/* menu (ElementsKit Nav Menu) */
.elementor-widget.jsd-header-nav { flex: 1 1 auto; min-width: 0; }
.e-con.jsd-header-right { --width: auto; width: auto; flex: 0 0 auto; }
.jsd-site-header .jsd-header-nav .elementskit-navbar-nav { flex-wrap: nowrap; }
.jsd-site-header .jsd-header-nav .elementskit-navbar-nav > li > a {
	color: #fff !important; font-size: 15px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase !important; padding: 10px 12px; white-space: nowrap;
}
.jsd-header-nav .elementskit-navbar-nav > li > a:hover,
.jsd-header-nav .elementskit-navbar-nav > li > a:focus,
.jsd-site-header .jsd-header-nav .elementskit-navbar-nav > li:is(.current-menu-item, .current-menu-parent, .current-menu-ancestor) > a { color: var(--jsd-gold) !important; }
.jsd-site-header .jsd-header-nav .elementskit-submenu-panel li.current-menu-item > a { color: var(--jsd-navy) !important; font-weight: 700; }
.jsd-header-nav .elementskit-navbar-nav > li > a .elementskit-submenu-indicator,
.jsd-header-nav .elementskit-navbar-nav > li > a i { color: inherit; fill: currentColor; }
.jsd-header-nav .elementskit-submenu-panel { background: #fff; border-radius: 4px; box-shadow: 0 10px 30px rgba(1, 42, 64, .18); padding: 8px 0; min-width: 240px; }
.jsd-site-header .jsd-header-nav .elementskit-submenu-panel a { color: var(--jsd-ink) !important; font-size: var(--jsd-body) !important; text-transform: none; padding: 8px 18px; }
.jsd-header-nav .elementskit-submenu-panel a:hover { background: var(--jsd-mist); color: var(--jsd-navy) !important; }
.jsd-site-header .jsd-header-nav .elementskit-menu-hamburger { border-color: rgba(255,255,255,.8) !important; }
.jsd-site-header .jsd-header-nav .elementskit-menu-hamburger .elementskit-menu-hamburger-icon { background-color: #fff !important; height: 2px; }

/* language switch + button */
.jsd-lang { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; letter-spacing: .05em; color: rgba(255,255,255,.75); }
.jsd-lang a { color: rgba(255,255,255,.8); text-decoration: none; padding: 4px 2px; }
.jsd-lang a:hover, .jsd-lang a:focus { color: #fff; text-decoration: underline; }
.jsd-lang-current { color: var(--jsd-gold); font-weight: 700; }
.jsd-lang-sep { color: rgba(255,255,255,.4); }
.jsd-header-cta { padding: .65em 1.2em; font-size: 15px; white-space: nowrap; text-decoration: none; }
.jsd-site-header a:focus-visible { outline: 3px solid var(--jsd-gold); outline-offset: 3px; }
/* keyboard focus on dark backgrounds (header, hero, welcome band, call-to-action band, footer): always gold.
   !important: Astra's own focus outline (navy/dark, invisible here) otherwise wins (J1). */
:is(.ekit-template-content-header, .jsd-hero, .jsd-welcome-home, .jsd-cta-band, .jsd-site-footer) :is(a, button, [tabindex]):focus-visible {
	outline: 3px solid var(--jsd-gold) !important; outline-offset: 3px !important;
}

@media (max-width: 1024px) {
	.jsd-logo img.jsd-logo-img { height: 44px; }
	/* off-canvas menu panel on tablets/phones: white panel, dark text */
	.jsd-header-nav .elementskit-menu-offcanvas-elements { background: #fff; }
	.jsd-site-header .jsd-header-nav .elementskit-navbar-nav > li > a { color: var(--jsd-ink) !important; font-size: var(--jsd-body); padding: 12px 20px; border-bottom: 1px solid var(--jsd-line); }
	.jsd-site-header .jsd-header-nav .elementskit-navbar-nav > li > a:hover { color: var(--jsd-navy) !important; }
	/* active item on the white panel: gold text would be too faint, so navy + gold bar */
	.jsd-site-header .jsd-header-nav .elementskit-navbar-nav > li:is(.current-menu-item, .current-menu-parent, .current-menu-ancestor) > a { color: var(--jsd-navy) !important; font-weight: 700; box-shadow: inset 4px 0 0 var(--jsd-gold); }
	.jsd-header-nav .elementskit-submenu-panel { box-shadow: none; min-width: 0; }
	.jsd-header-nav .elementskit-submenu-panel a { padding-left: 36px; }
	.jsd-header-nav .elementskit-menu-close { color: var(--jsd-ink); border-color: var(--jsd-line); }
	/* submenus in the mobile panel: hidden until their arrow is tapped, no empty gap */
	.jsd-header-nav .elementskit-dropdown:not(.elementskit-dropdown-open) { display: none; }
	.jsd-header-nav .elementskit-dropdown.elementskit-dropdown-open { display: block; visibility: visible; opacity: 1; position: static; transform: none; max-height: none; height: auto; }
	.jsd-site-header .jsd-header-nav .elementskit-dropdown a { font-size: var(--jsd-body); line-height: 1.4; padding: 10px 20px 10px 36px; text-transform: none; }
	/* logged-in editors: keep the panel below the WordPress admin bar */
	.admin-bar .jsd-header-nav .elementskit-menu-offcanvas-elements { top: var(--wp-admin--admin-bar--height, 0px); height: calc(100% - var(--wp-admin--admin-bar--height, 0px)); }
}

/* Space between the header and the page content (not on the full-width home page). */
body:not(.elementor-template-full-width) #content.site-content { padding-top: 40px; }
@media (max-width: 921px) { body:not(.elementor-template-full-width) #content.site-content { padding-top: 24px; } }

/* =========================================================================
   Footer (ElementsKit template)
   ========================================================================= */
.jsd-site-footer, .jsd-site-footer p, .jsd-site-footer li { color: rgba(255,255,255,.82); }
.jsd-footer-about .jsd-logo img.jsd-logo-img { height: 46px; margin-bottom: 14px; }
.jsd-footer-about p { margin: 0; }
/* footer text 1px smaller than the rest of the site (user's choice): 16px texts/links, 13px titles/bottom line */
.jsd-site-footer p, .jsd-site-footer li, .jsd-site-footer a { font-size: 16px; }
/* large screens: the left column is wide enough for the lab's name on one line */
@media (min-width: 1200px) {
	.e-con.jsd-site-footer > .e-con-inner > .e-con:first-child { column-gap: 28px; flex-wrap: nowrap; }
	.e-con.jsd-site-footer > .e-con-inner > .e-con:first-child > .e-con:nth-child(1) { flex: 0 0 590px; width: auto; }
	.e-con.jsd-site-footer > .e-con-inner > .e-con:first-child > .e-con:nth-child(2) { flex: 0 0 160px; width: auto; }
	.e-con.jsd-site-footer > .e-con-inner > .e-con:first-child > .e-con:nth-child(3) { flex: 1 1 0; width: auto; }
}
.jsd-footer-title { color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; margin: 0 0 14px; }
.jsd-footer-list { list-style: none; margin: 0; padding: 0; }
.jsd-footer-list li { margin: 0 0 6px; }
.jsd-site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.jsd-site-footer a:hover, .jsd-site-footer a:focus { color: var(--jsd-gold); text-decoration: underline; }
.jsd-footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px;
	display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }

/* Page heading for pages built with Elementor (e.g. «Τεύχη») */
.jsd-page-title .elementor-heading-title { font-size: 38px; line-height: 1.2; font-weight: 700; color: var(--jsd-ink); margin: 0 0 32px; }

@media (max-width: 921px) {
	.jsd-issue-hero-in { grid-template-columns: 1fr; gap: 24px; }
	.jsd-issue-hero .jsd-cover { max-width: 170px; }
	.jsd-issue-hero h1 { font-size: 30px; }
	.jsd-toc-leader { display: none; }
	.jsd-toc-line { flex-wrap: wrap; }
	.jsd-issue-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.jsd-page-title .elementor-heading-title { font-size: 30px; }
}

/* =========================================================================
   Article search (E1, [jsd_search] in mu-plugins/jsd-search.php)
   ========================================================================= */
.jsd-search { background: var(--jsd-mist); border-top: 6px solid var(--jsd-gold); padding: 26px; margin: 0 0 40px; }
.jsd-search label { display: block; font-size: var(--jsd-small); font-weight: 500; color: var(--jsd-ink); margin: 0 0 6px; }
.jsd-search-row { display: flex; gap: 12px; }
.jsd-search input[type="search"], .jsd-search select { font: inherit; font-size: var(--jsd-body); color: var(--jsd-ink); background: #fff;
	border: 1px solid #9AA3AF; border-radius: 4px; padding: 10px 14px; min-height: 48px; width: 100%; margin: 0; box-shadow: none; }
.jsd-search input[type="search"]:focus, .jsd-search select:focus { border-color: var(--jsd-navy); outline: 3px solid rgba(2,60,91,.25); outline-offset: 0; }
.jsd-search-row .jsd-btn { flex: none; min-height: 48px; cursor: pointer; }
.jsd-search-filters { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 16px; margin-top: 18px; }
.jsd-search-clear { margin: 14px 0 0; font-size: var(--jsd-small); }
.jsd-search-clear a { color: var(--jsd-navy); }
.jsd-search-count { color: var(--jsd-slate); margin: 0 0 6px; }
.jsd-search-results .jsd-section-title { border-top: 0; padding-top: 0; }
.jsd-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 28px; }
.jsd-pagination .page-numbers { display: inline-block; min-width: 44px; padding: 9px 12px; text-align: center; border: 1px solid var(--jsd-line);
	border-radius: 4px; color: var(--jsd-navy); text-decoration: none; }
.jsd-pagination .page-numbers.current { background: var(--jsd-navy); border-color: var(--jsd-navy); color: #fff; }
.jsd-pagination a.page-numbers:hover, .jsd-pagination a.page-numbers:focus { border-color: var(--jsd-navy); }
@media (max-width: 921px) {
	.jsd-search { padding: 20px 16px; }
	.jsd-search-filters { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 544px) {
	.jsd-search-row { flex-direction: column; }
}

/* =========================================================================
   Static pages (F2, tools/elementor/f2-static-pages.php)
   ========================================================================= */
.jsd-section-h .elementor-heading-title { font-size: 24px; line-height: 1.25; font-weight: 700; color: var(--jsd-ink); margin: 40px 0 16px; padding-top: 22px; border-top: 2px solid var(--jsd-ink); }
.jsd-prose p, .jsd-prose ul:not(.jsd-checklist) { max-width: none; } /* full width (user's choice) */
.jsd-prose p, .jsd-prose li { font-size: var(--jsd-body); }
.jsd-prose ul { margin: 0 0 1em 1.2em; }
.jsd-prose li { margin-bottom: .5em; }
.jsd-prose li::marker { color: var(--jsd-gold-ink); }
.jsd-signoff { margin-top: 1.4em; }

/* person cards (committees) */
.e-con.jsd-person-grid { margin-top: 8px; }
.e-con.jsd-person { position: relative; background: #fff; border: 1px solid var(--jsd-line); border-left: 5px solid var(--jsd-gold);
	padding: 22px 24px 20px; height: 100%; transition: transform .2s, box-shadow .2s; }
.e-con.jsd-person:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(1,42,64,.10); }
.jsd-person-name .elementor-heading-title { font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--jsd-navy); margin: 0 0 6px; }
.jsd-person-role p { color: var(--jsd-slate); margin: 0; }
.e-con.jsd-person-lead { background: var(--jsd-navy-deep); border: 0; border-left: 5px solid var(--jsd-gold); padding: 30px 32px; margin: 8px 0 20px; }
.e-con.jsd-person-lead .jsd-person-name .elementor-heading-title { color: #fff; font-size: 26px; }
.e-con.jsd-person-lead .jsd-person-role p { color: var(--jsd-gold); font-weight: 500; letter-spacing: .04em; }
@media (prefers-reduced-motion: reduce) { .e-con.jsd-person { transition: none; } .e-con.jsd-person:hover { transform: none; } }

/* call for papers */
.jsd-prose ul.jsd-checklist, .jsd-checklist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.jsd-checklist li { position: relative; padding: 14px 16px 14px 48px; background: var(--jsd-mist); border-radius: 4px; margin: 0; }
.jsd-checklist li::before { content: ""; position: absolute; left: 16px; top: 17px; width: 20px; height: 20px; border-radius: 50%;
	background: var(--jsd-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%231B1F29' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.jsd-how-card .elementor-icon-box-title { font-size: 19px; }
.jsd-how-card .elementor-icon svg, .jsd-contact-card .elementor-icon svg { width: 28px; height: 28px; }
.e-con.jsd-cta-band { margin-top: 28px; padding: 28px 32px; background: var(--jsd-gold-tint); border-left: 5px solid var(--jsd-gold); }

/* submission guidelines: numbered steps */
.e-con.jsd-steps { counter-reset: jsd-step; }
.e-con.jsd-step { counter-increment: jsd-step; position: relative; padding: 22px 0 18px 68px; border-bottom: 1px solid var(--jsd-line); }
.e-con.jsd-step::before { content: counter(jsd-step); position: absolute; left: 0; top: 20px; width: 44px; height: 44px; border-radius: 50%;
	background: var(--jsd-navy); color: #fff; font-weight: 700; font-size: 19px; display: flex; align-items: center; justify-content: center; }
.jsd-step-title .elementor-heading-title { font-size: 20px; font-weight: 700; color: var(--jsd-ink); margin: 8px 0 10px; }
.jsd-prose ol.jsd-chips, .jsd-chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: jsd-chip; }
.jsd-chips li { counter-increment: jsd-chip; margin: 0; padding: 6px 12px; background: var(--jsd-mist); border: 1px solid var(--jsd-line); border-radius: 999px; font-size: var(--jsd-small); }
.jsd-chips li::before { content: counter(jsd-chip) ". "; color: var(--jsd-gold-ink); font-weight: 700; }
.e-con.jsd-form-area { margin-top: 12px; scroll-margin-top: 120px; }

/* contact */
.e-con.jsd-contact-grid { margin-top: 12px; }
.jsd-contact-card { background: #fff; border: 1px solid var(--jsd-line); border-top: 4px solid var(--jsd-gold); padding: 28px 26px; height: 100%; }
.jsd-contact-card .elementor-icon { font-size: 26px; color: var(--jsd-navy); fill: var(--jsd-navy); }
.jsd-contact-card .elementor-icon-box-title { font-size: 20px; font-weight: 700; color: var(--jsd-ink); margin: 0 0 8px; }
.jsd-contact-card .elementor-icon-box-title a { color: var(--jsd-ink); }
.jsd-contact-card .elementor-icon-box-description { font-size: var(--jsd-body); color: var(--jsd-slate); line-height: 1.6; margin: 0; }

/* =========================================================================
   Welcome letter (home section + page, tools/elementor/welcome.php)
   ========================================================================= */
/* No issue published yet: hide the empty "current issue" band on the home page. */
.jsd-home-current:not(:has(.jsd-current)) { display: none; }

.e-con.jsd-welcome-home { border-bottom: 6px solid var(--jsd-gold); }
.jsd-welcome-eyebrow { font-size: var(--jsd-small); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--jsd-gold); margin: 0 0 18px; }
.jsd-welcome-quote { margin: 0; padding: 0; border: 0; }
.jsd-welcome-quote p { font-size: 32px; line-height: 1.3; font-weight: 500; color: #fff; margin: 0; letter-spacing: -.005em; }
.jsd-welcome-quote p::before { content: "\201C"; display: block; font-family: Georgia, "Times New Roman", serif; font-size: 88px; line-height: .8; height: 46px; color: var(--jsd-gold); }
.jsd-welcome-excerpt p { color: rgba(255,255,255,.86); }
.jsd-welcome-excerpt .jsd-welcome-hello { color: #fff; }
.jsd-welcome-hello { font-style: italic; font-weight: 500; }
.e-con.jsd-welcome-home .jsd-signature { border-top-color: rgba(255,255,255,.18); }
.e-con.jsd-welcome-home .jsd-signature strong { color: #fff; }
.e-con.jsd-welcome-home .jsd-signature p span { color: rgba(255,255,255,.75); }
.e-con.jsd-welcome-home .jsd-el-btn-gold { margin-top: 26px; }

.jsd-signature { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--jsd-line); }
.jsd-signature p { margin: 0; display: flex; flex-direction: column; line-height: 1.4; }
.jsd-signature strong { font-size: 19px; color: var(--jsd-ink); }
.jsd-signature p span { color: var(--jsd-slate); font-size: var(--jsd-small); }
.jsd-signature .jsd-signature-regards { font-style: italic; font-size: var(--jsd-body); margin-bottom: 2px; }
.jsd-monogram { flex: none; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
	background: var(--jsd-navy); color: #fff; font-weight: 700; font-size: 19px; letter-spacing: .06em; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--jsd-gold); }

/* welcome page */
.e-con.jsd-welcome-band { text-align: center; }
.jsd-welcome-eyebrow-el p { font-size: var(--jsd-small); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--jsd-gold); margin: 0 0 12px; }
.jsd-welcome-title .elementor-heading-title { color: #fff; font-size: 44px; line-height: 1.15; font-weight: 700; margin: 0; }
.e-con.jsd-welcome-paper-wrap { position: relative; }
.e-con.jsd-paper { background: #fff; border-radius: 6px; box-shadow: 0 24px 60px rgba(1,42,64,.16), 0 2px 6px rgba(1,42,64,.06); }
.jsd-letter p { font-size: var(--jsd-body); line-height: 1.75; color: var(--jsd-ink); margin: 0 0 1.1em; }
.jsd-letter .jsd-welcome-hello { color: var(--jsd-navy); }
.jsd-dropcap::first-letter { float: left; font-size: 76px; line-height: .82; font-weight: 700; color: var(--jsd-navy); padding: 8px 12px 0 0; }
.jsd-letter .jsd-pullquote { margin: 34px 0; padding: 6px 0 6px 28px; border-left: 5px solid var(--jsd-gold); }
.jsd-letter .jsd-pullquote p { font-size: 25px; line-height: 1.4; font-weight: 500; color: var(--jsd-navy); margin: 0; }
.jsd-letter .jsd-signature p { margin: 0; font-size: inherit; }
.e-con.jsd-welcome-actions { justify-content: center; }

@media (max-width: 921px) {
	.jsd-checklist { grid-template-columns: 1fr; }
	.e-con.jsd-step { padding-left: 58px; }
	.e-con.jsd-step::before { width: 38px; height: 38px; font-size: 17px; }
	.e-con.jsd-person-lead { padding: 24px 22px; }
	.e-con.jsd-person-lead .jsd-person-name .elementor-heading-title { font-size: 22px; }
	.jsd-welcome-quote p { font-size: 25px; }
	.jsd-welcome-title .elementor-heading-title { font-size: 32px; }
	.jsd-letter .jsd-pullquote p { font-size: 21px; }
	.jsd-dropcap::first-letter { font-size: 62px; }
	.e-con.jsd-cta-band { padding: 22px 20px; }
}
.e-con.jsd-static-page { padding-bottom: 72px; }
.jsd-cta-text p { font-size: 20px; font-weight: 500; color: var(--jsd-ink); margin: 0; }
@media (max-width: 921px) { .e-con.jsd-static-page { padding-bottom: 48px; } }

/* =========================================================================
   Article submission form (H1): Sigma Forms with form theme "jsd"
   (tools/sigmaforms/h1-submission-forms.php). Works wherever the form is placed.
   ========================================================================= */
.sf-form-container.sf-theme-jsd { --sf-gutter-spacing: 12px; max-width: 880px; margin: 0; background: #fff; border: 1px solid var(--jsd-line);
	border-radius: 10px; box-shadow: 0 18px 50px rgba(1,42,64,.10); padding: 0 40px 36px; overflow: hidden; font-size: var(--jsd-body); }
.sf-theme-jsd .sf-form-fields-wrapper { --sf-gutter-spacing: 12px; }

/* progress: a gold bar across the top of the card + step counter in the title */
.sf-theme-jsd .sf-step-progress-bar { display: block; position: relative; flex-basis: calc(100% + 80px); width: calc(100% + 80px); height: 8px;
	margin: 0 -40px 30px; background: var(--jsd-mist); }
.sf-theme-jsd .sf-step-progress-fill { position: absolute; inset: 0 auto 0 0; width: var(--sf-step-progress, 0%); background: linear-gradient(90deg, var(--jsd-gold), #F2B455);
	transition: width .5s ease; border-radius: 0 8px 8px 0; }
.sf-theme-jsd .sf-step-progress-label { display: none; }

/* step title with a numbered badge */
.sf-theme-jsd .sf-field-container.jsd-sf-step-title { margin-bottom: 6px; }
.sf-theme-jsd .sf-form .sf-section-heading { margin: 0 0 4px; }
.sf-theme-jsd .sf-form .sf-section-heading h3 { display: flex; align-items: center; gap: 14px; border: 0 !important; padding: 0 0 6px; margin: 0;
	font-size: 26px; font-weight: 700; color: var(--jsd-ink); }
.sf-theme-jsd .sf-form-step .sf-section-heading h3::before { content: "1"; flex: none; width: 44px; height: 44px; border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center; background: var(--jsd-navy); color: #fff; font-size: 19px;
	box-shadow: 0 0 0 4px var(--jsd-gold-tint), 0 0 0 6px var(--jsd-gold); }

/* badge number = step index (CSS counters skip the hidden steps) */
.sf-theme-jsd .sf-form-step[data-step="1"] .sf-section-heading h3::before { content: "2"; }
.sf-theme-jsd .sf-form-step[data-step="2"] .sf-section-heading h3::before { content: "3"; }
.sf-theme-jsd .sf-form-step[data-step="3"] .sf-section-heading h3::before { content: "4"; }

/* labels and inputs */
.sf-theme-jsd .sf-field-container { margin-bottom: 22px; }
.sf-theme-jsd .sf-field-container > label { font-size: 15px; font-weight: 500; color: var(--jsd-ink); margin-bottom: 8px; }
.sf-theme-jsd .sf-required { color: #B3261E; }
.sf-theme-jsd .sf-field-container input[type="text"], .sf-theme-jsd .sf-field-container input[type="email"], .sf-theme-jsd .sf-field-container input[type="tel"],
.sf-theme-jsd .sf-field-container select, .sf-theme-jsd .sf-field-container textarea {
	font: inherit; font-size: var(--jsd-body); line-height: 1.4; color: var(--jsd-ink); background: #fff; border: 1px solid #9AA3AF; border-radius: 6px;
	padding: 12px 14px; min-height: 50px; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.sf-theme-jsd .sf-field-container textarea { min-height: 110px; }
.sf-theme-jsd .sf-field-container input::placeholder, .sf-theme-jsd .sf-field-container textarea::placeholder { color: #7A8291; }
.sf-theme-jsd .sf-field-container input:focus, .sf-theme-jsd .sf-field-container select:focus, .sf-theme-jsd .sf-field-container textarea:focus {
	border-color: var(--jsd-navy); box-shadow: 0 0 0 3px rgba(2,60,91,.18); outline: none; }
.sf-theme-jsd .sf-field-help-text { font-style: normal; font-size: var(--jsd-small); color: var(--jsd-slate); margin-top: 6px; line-height: 1.5; }

/* radio choices as pill buttons (language, ethical approval) */
.sf-theme-jsd .jsd-sf-pills .sf-radio-options { gap: 10px; }
.sf-theme-jsd .jsd-sf-pills .sf-radio-options { flex-wrap: nowrap; }
.sf-theme-jsd .jsd-sf-pills .sf-radio-options > .sf-radio-option { position: relative; margin: 0; flex: 1 1 0; min-width: 0; }
.sf-theme-jsd .jsd-sf-pills .sf-radio-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sf-theme-jsd .jsd-sf-pills .sf-radio-option label { display: flex !important; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px;
	padding: 10px 14px; border: 1px solid #9AA3AF; border-radius: 6px; background: #fff; color: var(--jsd-ink); font-weight: 500; cursor: pointer;
	transition: background .15s, border-color .15s, color .15s; }
.sf-theme-jsd .jsd-sf-pills .sf-radio-option label:hover { border-color: var(--jsd-navy); background: var(--jsd-mist); }
.sf-theme-jsd .jsd-sf-pills .sf-radio-option:has(input:checked) label { background: var(--jsd-navy); border-color: var(--jsd-navy); color: #fff; }
.sf-theme-jsd .jsd-sf-pills .sf-radio-option:has(input:checked) label::before { content: "✓"; font-weight: 700; color: var(--jsd-gold); }
.sf-theme-jsd .jsd-sf-pills .sf-radio-option:has(input:focus-visible) label { outline: 3px solid var(--jsd-gold); outline-offset: 2px; }

/* file upload: dashed drop zone */
.sf-theme-jsd .sf-file-upload { min-height: 140px; border: 2px dashed #AEB6C2 !important; border-radius: 8px; background: var(--jsd-mist) !important;
	transition: border-color .15s, background .15s; }
.sf-theme-jsd .sf-file-upload input[type="file"] { min-height: 140px; }
.sf-theme-jsd .sf-file-upload:hover, .sf-theme-jsd .sf-file-upload:focus-within { border-color: var(--jsd-gold) !important; background: var(--jsd-gold-tint) !important; }
.sf-theme-jsd .sf-file-upload .sf-file-upload-icon { width: 85%; }
.sf-theme-jsd .sf-file-upload .dashicons-upload { width: 52px; height: 52px; font-size: 26px; line-height: 52px; border-radius: 50%; background: var(--jsd-navy); color: #fff; }
.sf-theme-jsd .sf-file-upload .sf-file-upload-text { color: var(--jsd-navy); font-size: 15px; font-weight: 500; }
.sf-theme-jsd .sf-file-icon { background: var(--jsd-navy); }

/* consent box */
.sf-theme-jsd .jsd-sf-consent > label { display: none; }
.sf-theme-jsd .jsd-sf-consent .sf-checkbox-options { display: block; padding: 18px 20px; background: var(--jsd-gold-tint); border-left: 5px solid var(--jsd-gold); border-radius: 6px; }
.sf-theme-jsd .jsd-sf-consent .sf-checkbox-option { align-items: flex-start; gap: 12px; margin: 0; }
.sf-theme-jsd .jsd-sf-consent input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--jsd-navy); }
.sf-theme-jsd .jsd-sf-consent .sf-option-text { font-size: var(--jsd-body); line-height: 1.55; color: var(--jsd-ink); }
.sf-theme-jsd .jsd-sf-consent .sf-option-text::after { content: " *"; color: #B3261E; }

/* step navigation and buttons */
.sf-theme-jsd .sf-step-navigation { border-top: 1px solid var(--jsd-line); margin-top: 18px; padding-top: 24px; }
.sf-theme-jsd .sf-step-indicator, .sf-theme-jsd .sf-step-number { font-size: var(--jsd-small); color: var(--jsd-slate); letter-spacing: .06em; text-transform: uppercase; }
.sf-theme-jsd .sf-step-number { color: var(--jsd-navy); }
.sf-theme-jsd .sf-next-step-btn, .sf-theme-jsd .sf-prev-step-btn, .sf-theme-jsd .sf-submit-button {
	font: inherit; font-size: var(--jsd-body); font-weight: 500; line-height: 1.2; padding: 14px 26px; border-radius: 6px; box-shadow: none; cursor: pointer;
	transition: background .15s, color .15s, transform .15s; }
.sf-theme-jsd .sf-next-step-btn { background: var(--jsd-navy) !important; color: #fff !important; border: 2px solid var(--jsd-navy); }
.sf-theme-jsd .sf-next-step-btn::after { content: "→"; }
.sf-theme-jsd .sf-next-step-btn:hover, .sf-theme-jsd .sf-next-step-btn:focus { background: var(--jsd-navy-deep) !important; transform: none; box-shadow: none; }
.sf-theme-jsd .sf-prev-step-btn { background: #fff !important; color: var(--jsd-navy) !important; border: 2px solid var(--jsd-navy); }
.sf-theme-jsd .sf-prev-step-btn::before { content: "←"; }
.sf-theme-jsd .sf-prev-step-btn:hover, .sf-theme-jsd .sf-prev-step-btn:focus { background: var(--jsd-mist) !important; }
.sf-theme-jsd .sf-form-step .sf-form-actions { margin-top: 8px; }
.sf-theme-jsd .sf-submit-button { background: var(--jsd-gold); color: var(--jsd-ink); border: 0; padding: 16px 34px; font-size: 18px; font-weight: 700;
	display: inline-flex; align-items: center; gap: 10px; }
.sf-theme-jsd .sf-submit-button::after { content: ""; width: 18px; height: 18px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11.5 21 3l-6.5 18-3-7.5L3 11.5z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11.5 21 3l-6.5 18-3-7.5L3 11.5z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat; }
.sf-theme-jsd .sf-submit-button:hover, .sf-theme-jsd .sf-submit-button:focus { background: #F2B455; color: var(--jsd-ink); }
.sf-theme-jsd .sf-submit-button.sf-loading::after { -webkit-mask: none; mask: none; background: none; }
.sf-theme-jsd :is(.sf-next-step-btn, .sf-prev-step-btn, .sf-submit-button):focus-visible { outline: 3px solid var(--jsd-gold); outline-offset: 3px; }

/* messages */
.sf-theme-jsd .sf-message { font-size: var(--jsd-body); font-weight: 500; border-radius: 8px; padding: 18px 20px; text-align: left; }
.sf-theme-jsd .sf-success-message { background: #EAF6EE; border: 1px solid #2E7D4F; color: #1E5A38; }
.sf-theme-jsd .sf-error-message { background: #FCEEEE; border: 1px solid #B3261E; color: #8C1D18; }
.sf-theme-jsd .sf-error { border-color: #B3261E !important; background: #FFF8F8 !important; }

@media (max-width: 768px) {
	.sf-form-container.sf-theme-jsd { padding: 0 28px 24px; border-radius: 8px; } /* ≥ 24px: the plugin shifts steps 2 × 12px left */
	.sf-theme-jsd .sf-step-progress-bar { flex-basis: calc(100% + 56px); width: calc(100% + 56px); margin: 0 -28px 24px; }
	.sf-theme-jsd .sf-form .sf-section-heading h3 { font-size: 22px; }
	.sf-theme-jsd .sf-form-step .sf-section-heading h3::before { width: 38px; height: 38px; font-size: 17px; }
	.sf-theme-jsd .sf-submit-button { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .sf-theme-jsd .sf-step-progress-fill { transition: none; } .sf-theme-jsd .sf-form-step.active { animation: none; } }
