/* ==========================================================================
   Job Accordion — styles
   Trimmed from the original Tailwind build to only the classes used by
   the accordion markup, plus a small custom block at the bottom that
   drives the open/close animation. Colors/fonts are hard-coded to match
   the source site's design tokens (Schibsted Grotesk / Overpass Mono,
   the orange/red/blue palette, etc).
   ========================================================================== */

/* Scoped reset for elements inside the accordion, so we don't fight
   the parent theme's own list/box-sizing rules. */
.job-accordion-wrap,
.job-accordion-wrap *,
.job-accordion-wrap :after,
.job-accordion-wrap :before {
	box-sizing: border-box;
}

.job-accordion-wrap ul,
.job-accordion-wrap ol {
	list-style: none;
	margin: 0;
	padding: 0;
}

.job-accordion-wrap h1,
.job-accordion-wrap h2,
.job-accordion-wrap h3 {
	line-height: 1.25;
	margin: 0;
}

.job-accordion-wrap p {
	margin: 0;
}

.job-accordion-wrap button {
	background: none;
	border: 0;
	cursor: pointer;
	font: inherit;
	margin: 0;
	padding: 0;
}

/* ---- layout / utility classes used in the markup ---- */

.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-7xl { max-width: 80rem; }

.relative { position: relative; }
.flex { display: flex; }
.grid { display: grid; }
.inline-flex { display: inline-flex; }

.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-stretch { align-items: stretch; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-fluid { padding-top: clamp(1rem, 4vw, 4rem); padding-bottom: clamp(1rem, 4vw, 4rem); }

.col-start-2 { grid-column-start: 2; }

.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.h-0 { height: 0; }

.overflow-clip { overflow: clip; }

.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-black { border-color: #151516; }

.z-10 { z-index: 10; }

.text-2xl { font-size: 1.5rem; line-height: 2rem; }

.transition { transition-property: color, background-color, border-color, opacity, box-shadow, transform, filter; transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.23, 1, 0.32, 1); }
.duration-300 { transition-duration: 0.3s; }

.hover\:text-orange:hover { color: #f47042; }
.hover\:opacity-60:hover { opacity: 0.6; }

.sr-only {
	clip: rect(0, 0, 0, 0);
	border-width: 0;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

@media (min-width: 640px) {
	.sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sm\:items-center { align-items: center; }
	.sm\:flex-row { flex-direction: row; }
}

/* ---- typography (matches the source theme's font stack) ---- */

.font-mono {
	font-family: "Schibsted Grotesk", sans-serif;
}

.font-mono-alt {
	font-family: "Overpass Mono", monospace;
}

.job-accordion-wrap {
	font-family: "Schibsted Grotesk", sans-serif;
	color: #151516;
}

/* ---- wysiwyg (accordion body content, i.e. the_content()) ---- */

.wysiwyg {
	max-width: 90ch;
}

.wysiwyg > * + * {
	margin-top: 1.5rem;
}

.wysiwyg h2,
.wysiwyg h3,
.wysiwyg h4 {
	font-family: "Schibsted Grotesk Semibold", sans-serif;
	padding-top: 0.5em;
}

.wysiwyg h2 { font-size: clamp(1.25rem, 1.5vw + 1.25rem, 2.25rem); }
.wysiwyg h3 { font-size: clamp(1.125rem, 1.5vw + 1rem, 2rem); }
.wysiwyg h4 {
	font-family: "Overpass Mono", monospace;
	font-size: clamp(1rem, 0.875vw + 0.5rem, 1.125rem);
	text-transform: uppercase;
}

.wysiwyg ul { list-style-type: disc; }
.wysiwyg ol { list-style-type: decimal; }
.wysiwyg ol,
.wysiwyg ul {
	list-style-position: outside;
	padding-left: 1.25rem;
}

.wysiwyg p { margin: 0; }

/* ==========================================================================
   Accordion behavior (custom — this part isn't in the original CSS dump,
   it's what actually drives the open/close animation via JS)
   ========================================================================== */

.accordion-item {
	opacity: 1;
}
.accordion-item p, .accordion-item a{font-size: 1.25rem; color: #121212;}
.accordion-item button, .accordion-item button:hover, .accordion-item button:focus, .accordion-item button:active{padding: 0; background-color: transparent;}
.accordion-header {
	cursor: pointer;
}

/* full-row hit area, mirrors the original .card-link::before technique */
.accordion-header .card-link {
	position: relative;
}

.accordion-panel {
	height: 0;
	opacity: 0;
	transition: height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
		opacity 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.accordion-panel p, .accordion-panel ul{font-size: 1.25rem; margin-bottom: 2rem;}
.accordion-item.is-open .accordion-panel {
	opacity: 1;
}

/* Drawn with two bars instead of a font glyph, so it renders identically
   regardless of which fonts are loaded. Closed = "+", open = "−". */
.accordion-icon {
	color: #151516;
	font-size: 0; /* hide the literal "+" text node in the markup */
}

.accordion-icon::before,
.accordion-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.875rem;
	height: 2px;
	background: currentColor;
	transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.accordion-icon::before {
	transform: translate(-50%, -50%); /* horizontal bar */
}

.accordion-icon::after {
	transform: translate(-50%, -50%) rotate(90deg); /* vertical bar */
}

/* Collapse the vertical bar onto the horizontal one → "−" */
.accordion-item.is-open .accordion-icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
	.accordion-panel,
	.accordion-icon::before,
	.accordion-icon::after {
		transition: none;
	}
}