/* Open Opportunities theme 1.7.12 consolidated release styles. */

/* 1.7.31: social profiles in the first footer column. */
.footer-social-links {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
}

.footer-social-link {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: #fff;
	color: #53657b;
	transition: border-color .2s, color .2s, transform .2s;
}

.footer-social-link svg {
	display: block;
	width: 26px;
	height: 26px;
	fill: currentColor;
}

.footer-social-link:hover {
	border-color: var(--blue);
	color: var(--blue);
	transform: translateY(-1px);
}

.footer-social-link:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 3px;
}

@media (max-width: 1080px) {
	.header-main {
		gap: 16px;
	}

	.header-main > .mobile-toggle {
		flex: 0 0 auto;
	}

	.header-main > .account-links {
		margin-left: auto;
	}
}

.oo-not-found-actions {
	flex-direction: column;
	gap: 14px;
}

body.has-newsletter-modal {
	overflow: hidden;
}

.newsletter-modal[hidden] {
	display: none !important;
}

.newsletter-modal {
	position: fixed;
	z-index: 100000;
	inset: 0;
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 24px;
	overflow-y: auto;
	background: rgba(5, 13, 27, .72);
	isolation: isolate;
}

.newsletter-modal-backdrop {
	position: absolute;
	z-index: -1;
	inset: 0;
	background: rgba(5, 13, 27, .72);
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
}

.newsletter-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(650px, 100%);
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	margin: auto;
	padding: clamp(32px, 6vw, 58px);
	overflow-y: auto;
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 24px;
	background: linear-gradient(145deg, #fff 0%, #eef7ff 100%);
	box-shadow: 0 30px 90px rgba(5, 22, 48, .4);
	text-align: center;
}

.newsletter-modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #e8eef6;
	color: #34465e;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.newsletter-modal-close:hover,
.newsletter-modal-close:focus-visible {
	background: #dce6f1;
	color: #16233a;
	outline: 2px solid #246bfd;
	outline-offset: 2px;
}

.newsletter-modal-icon {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	margin: 0 auto 14px;
	border-radius: 17px;
	background: #dff8f3;
	color: #087d78;
	font-size: 25px;
}

.newsletter-modal-dialog h2 {
	max-width: 550px;
	margin: 4px auto 14px;
	font-size: clamp(29px, 4vw, 43px);
	line-height: 1.1;
	letter-spacing: -.04em;
}

.newsletter-modal-dialog > p:not(.eyebrow) {
	max-width: 530px;
	margin: 0 auto 26px;
	color: #53657b;
}

.newsletter-modal-dialog .oo-newsletter-form {
	max-width: 520px;
	margin: 0 auto;
	text-align: left;
}

.newsletter-modal-dialog .oo-newsletter-form output {
	display: block;
	grid-column: 1 / -1;
	margin-top: 13px;
	padding: 13px 16px;
	border: 1px solid #9dd9cb;
	border-radius: 10px;
	background: #e7f8f3;
	color: #075f58;
	font-size: clamp(17px, 2.4vw, 19px);
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
}

.newsletter-modal-dialog .oo-newsletter-form output:empty {
	display: none;
}

.newsletter-modal-dialog small {
	display: block;
	margin-top: 15px;
	color: #718096;
}

.opportunity-hero-copy .opportunity-save-row {
	margin-top: 18px;
}

/* Expressive, code-native remote discovery icon. */
.remote-discovery-icon{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(145deg,#1769e8 0%,#0aa6a2 100%);box-shadow:0 10px 24px rgba(26,100,190,.24),inset 0 1px 0 rgba(255,255,255,.28)}
.remote-discovery-icon::after{content:"";position:absolute;z-index:-1;width:42px;height:42px;right:-19px;bottom:-20px;border-radius:50%;background:rgba(255,255,255,.18)}
.remote-discovery-icon svg{display:block;width:42px;height:42px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 3px rgba(13,54,105,.18))}
.remote-discovery-icon .remote-icon-screen{fill:rgba(255,255,255,.11)}
.remote-discovery-icon .remote-icon-globe{stroke-width:1.65}
.remote-discovery-icon .remote-icon-signal{stroke:#bffcf3;stroke-width:2.2}
.remote-discovery-icon .remote-icon-dot{fill:#bffcf3;stroke:none}

/* Individually managed advertising placements. Empty slots take no space. */
.oo-ad-slot{width:fit-content;max-width:100%;margin:0 auto;overflow:hidden;display:flex;flex-direction:column;align-items:center;text-align:center;line-height:normal;border:1px solid #ddd}
.oo-ad-slot::before{content:"Ad";display:block;width:100%;box-sizing:border-box;font-size:11px;line-height:1;color:#737983;font-weight:500;letter-spacing:.02em;margin:0 0 2px;padding:0 2px 0 0;text-align:right}
.oo-ad-slot>iframe,.oo-ad-slot>ins,.oo-ad-slot>div,.oo-ad-slot>img{margin-left:auto;margin-right:auto}
.oo-ad-slot:empty{display:none!important}
.archive-grid>.oo-ad-slot{grid-column:1/-1;margin:10px auto}
.archive-sidebar>.oo-ad-slot,.opportunity-sidebar>.oo-ad-slot{margin:0 auto}
.article-featured-image+.oo-ad-slot,.article-content .oo-ad-slot{margin:0 auto 34px}
.article-content .oo-ad-slot{margin:38px auto}

@media (max-width: 700px) {
	.newsletter-modal {
		padding: 14px;
	}

	.newsletter-modal-dialog {
		max-height: calc(100vh - 28px);
		max-height: calc(100dvh - 28px);
		padding: 40px 20px 28px;
		border-radius: 19px;
	}

	.newsletter-modal-dialog .oo-newsletter-form {
		grid-template-columns: 1fr;
	}

	.newsletter-modal-dialog h2 {
		font-size: 30px;
	}
}

/* 1.7.18: final responsive authority. The desktop archive and article grid
 * declarations live after older media queries in main.css; these rules load
 * last so sidebars reliably move below content on tablets and phones. */
img,video,iframe{max-width:100%}
.archive-layout>*,.article-layout>*,.opportunity-layout>*{min-width:0}
@media (max-width:1080px){
	.archive-layout{grid-template-columns:minmax(0,1fr)}
	.archive-layout>.archive-sidebar{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;min-width:0;margin-top:18px}
}
@media (max-width:980px){
	.article-layout,.opportunity-layout{grid-template-columns:minmax(0,1fr)}
	.article-layout>.article-sidebar,.opportunity-layout>.opportunity-sidebar{position:static;width:100%;min-width:0;margin-top:18px}
}
@media (max-width:700px){
	.archive-layout>.archive-sidebar,.article-layout>.article-sidebar,.opportunity-layout>.opportunity-sidebar{grid-template-columns:minmax(0,1fr)}
	.results-bar{align-items:flex-start;flex-wrap:wrap;gap:10px}
	.archive-search,.archive-search input,.archive-search select{min-width:0;max-width:100%}
	.archive-grid,.card-grid{grid-template-columns:minmax(0,1fr)}
	.archive-layout,.article-layout,.opportunity-layout{width:min(100% - 28px,1180px)}
}


/* 1.7.22: defensive responsive containment for every public-facing form.
 * These rules do not force controls to full width; they only prevent intrinsic
 * widths, grid/flex children, or long content from overflowing the viewport. */
form{min-width:0;max-width:100%;box-sizing:border-box}
form>*,form label,form fieldset{min-width:0}
form input:not([type=checkbox]):not([type=radio]),form select,form textarea,form button{max-width:100%;box-sizing:border-box}


/* 1.7.39: expose guest account actions inside the smartphone menu. */
.mobile-account-nav {
	display: none;
}

@media (max-width: 700px) {
	.mobile-account-nav {
		display: grid;
		gap: 4px;
		margin-top: 8px;
		padding: 14px 12px 4px;
		border-top: 1px solid var(--line);
	}

	.mobile-account-nav-label {
		margin-bottom: 2px;
		color: var(--muted);
		font-size: 12px;
		font-weight: 800;
		letter-spacing: .08em;
		text-transform: uppercase;
	}

	.category-scroll .mobile-account-nav a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 9px 0;
		color: #40516a;
		font-size: 15px;
		font-weight: 700;
	}

	.category-scroll .mobile-account-nav .mobile-create-account {
		justify-content: center;
		margin-top: 4px;
		padding: 10px 14px;
		border-radius: 10px;
		background: var(--blue);
		color: #fff;
	}
}

/* 1.7.41: compact signed-in account control on smartphones. */
.header-user-dropdown-name {
	display: none;
}

@media (max-width: 700px) {
	.header-user-menu > summary {
		width: 44px;
		height: 44px;
		justify-content: center;
		padding: 8px;
	}

	.header-user-menu > summary .header-user-summary-name {
		display: none;
	}

	.header-user-dropdown-name {
		display: block;
		max-width: 230px;
		margin: 0 4px 4px;
		padding: 10px 8px 9px;
		border-bottom: 1px solid var(--line);
		color: #25364a;
		font-size: 14px;
		font-weight: 800;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
}


/* 1.7.54: simple scrollable country dropdown for listing hero filters. */
.archive-search-filters > .oo-country-combobox {
	position: relative;
	display: flex;
	min-width: 0;
	align-items: stretch;
}

.archive-search-filters .oo-country-combobox > input {
	width: 100%;
	min-width: 0;
}

.oo-country-suggestions {
	position: absolute;
	z-index: 80;
	top: 100%;
	left: 0;
	right: 0;
	max-height: 216px;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0;
	border: 1px solid #b8c2cc;
	border-radius: 3px;
	background: #fff;
	box-shadow: none;
}

.oo-country-suggestions[hidden] {
	display: none !important;
}

.oo-country-suggestions [role="option"] {
	display: block;
	width: 100%;
	min-height: 34px;
	margin: 0;
	padding: 7px 10px;
	border: 0;
	border-bottom: 1px solid #edf0f2;
	border-radius: 0;
	background: #fff;
	background-image: none;
	color: #111 !important;
	box-shadow: none;
	transform: none;
	filter: none;
	transition: none;
	font: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
}

.oo-country-suggestions [role="option"]:last-child {
	border-bottom: 0;
}

.oo-country-suggestions [role="option"][hidden] {
	display: none !important;
}

.oo-country-suggestions [role="option"]:hover,
.oo-country-suggestions [role="option"].is-active {
	background: #f2f2f2;
	background-image: none;
	color: #111 !important;
	box-shadow: none;
	transform: none;
	filter: none;
}

.oo-country-suggestions [role="option"]:focus-visible {
	outline: 1px solid #777;
	outline-offset: -1px;
}

@media (max-width: 620px) {
	.oo-country-suggestions {
		max-height: 204px;
	}
}

/* 1.7.66: let the desktop blog article grid consume the full page-width. */
@media (min-width:981px){
	.article-layout{grid-template-columns:minmax(0,1fr) 280px}
}
.oo-ad-slot-opportunity_archive_bottom{margin-bottom:20px}

/* 1.7.72: separate homepage and other-page desktop vertical ad rails. */
.oo-ad-slot-opportunity_single_after_similar{margin:0 auto 34px}
.oo-ad-slot-home_rail_left,.oo-ad-slot-home_rail_right,.oo-ad-slot-opportunity_single_rail_left,.oo-ad-slot-opportunity_single_rail_right{display:none}
@media (min-width:1540px){
	.oo-ad-slot-home_rail_left,.oo-ad-slot-home_rail_right,.oo-ad-slot-opportunity_single_rail_left,.oo-ad-slot-opportunity_single_rail_right{display:flex;position:fixed;top:130px;z-index:30;max-width:160px;margin:0}
	.oo-ad-slot-home_rail_left,.oo-ad-slot-opportunity_single_rail_left{left:10px}
	.oo-ad-slot-home_rail_right,.oo-ad-slot-opportunity_single_rail_right{right:10px}
}

/* 1.7.78: optionally restrict selected inline placements to the no-rail layout. */
@media (min-width:1540px){
	.oo-ad-slot.oo-ad-mobile-only{display:none!important}
}

/* 1.7.81: make mobile opportunity images true edge-to-edge card headers, including homepage cards. */
@media (max-width:700px){
  .opportunity-card,.latest-grid>.opportunity-card{display:flex;flex-direction:column;overflow:hidden}
  .opportunity-card .card-main.has-card-image{display:contents}
  .opportunity-card .card-main.has-card-image>.card-copy{display:contents}
  .opportunity-card .card-main.has-card-image>.card-image{order:-1;width:calc(100% + 46px);max-width:none;margin:-23px -23px 18px;aspect-ratio:3/2;border:0;border-bottom:1px solid var(--line);border-radius:0}
  .opportunity-card .card-main.has-card-image>.card-copy>.card-meta{width:100%}
}
/* Blog archive inline ad rows. */
.blog-archive-layout .blog-grid>.oo-ad-slot-blog_archive_inline_1,.blog-archive-layout .blog-grid>.oo-ad-slot-blog_archive_inline_2{grid-column:1/-1}
#oo-ad-blog-list-bottom{margin-bottom:20px}
/* 1.7.82: space the single-opportunity inline ad vertically. */
#oo-ad-opportunity-single-inline{margin-top:20px;margin-bottom:20px}

/* 1.7.85: homepage latest cards keep the responsive portrait grid and pack by natural card height. */
@media (min-width:701px){
  .latest-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px;align-items:start;columns:auto}
  .latest-grid.is-masonry{grid-auto-rows:1px}
  .latest-grid>.opportunity-card{display:flex;flex-direction:column;width:100%;margin:0;overflow:hidden;align-self:start;break-inside:auto;page-break-inside:auto}
  .latest-grid>.opportunity-card .card-main.has-card-image{display:contents}
  .latest-grid>.opportunity-card .card-main.has-card-image>.card-copy{display:contents}
  .latest-grid>.opportunity-card .card-main.has-card-image>.card-image{order:-1;width:calc(100% + 46px);max-width:none;margin:-23px -23px 18px;aspect-ratio:3/2;border:0;border-bottom:1px solid var(--line);border-radius:0}
}


/* 1.7.86: visible editorial provenance and applicant-focused opportunity sections. */
.opportunity-published,.article-byline,.blog-card-date,.card-published{color:var(--muted)}
.opportunity-published{margin:6px 0 0;font-size:14px}
.card-published{font-size:12px;font-weight:650}
.blog-card-date{margin:0 0 8px;font-size:12px;font-weight:650}
.article-byline{margin:10px 0 0;font-size:14px}

/* 1.7.93: keep interior/listing H1 titles on the compact scale already used by opportunity heroes.
   The homepage marketing hero (.hero h1) is intentionally unchanged. */
.opportunity-hero h1,
.archive-hero h1,
.archive-heading h1,
.article-layout article>header h1,
.page-content h1 {
	font-size: clamp(28px, 3.8vw, 42px);
}

/* 1.7.94: normalize the listing-hero select controls instead of exposing the
 * browser/OS native select chrome. Keep the existing form geometry and filter
 * logic untouched; only the closed control appearance is normalized. */
.archive-search-filters select {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	min-width: 0;
	padding: 11px 38px 11px 11px;
	border: 0;
	border-right: 1px solid var(--line);
	border-radius: 0;
	outline: 0;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2364758b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 8px;
	color: var(--ink);
	box-shadow: none;
	cursor: pointer;
}

.archive-search-filters select::-ms-expand {
	display: none;
}

@media (max-width: 700px) {
	.archive-search-filters select {
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}
}
