/*
Theme Name: FanSided Openings
Theme URI: https://openings.fansided.com/
Author: FanSided
Description: Classic theme for FanSided Openings. Recreates the openings.fansided.com look (network bar, sticky openings nav, network footer) around the Comeet plugin. Set the Comeet sub-page and single opening page templates to page.php.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fansided-openings
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--fso-navy: #073759;
	--fso-navy-dark: #062f4d;
	--fso-blue: #5a97c1;
	--fso-blue-dark: #3f7aa3;
	--fso-grey: #818181;
	--fso-grey-light: #e5e5e5;
	--fso-grey-rule: #c3c3c3;
	--fso-border: #d5d5d5;
	--fso-meta: #898787;
	--fso-text: #073759;
	--fso-white: #fff;

	--fso-font-body: "Titillium Web", Arial, sans-serif;
	--fso-font-display: Oswald, "Arial Narrow", Arial, sans-serif;

	--fso-content: 920px;
	--fso-wide: 1160px;
	--fso-gutter: 20px;
	--fso-subnav-h: 50px;
	--fso-sticky-top: 0px;
}

.admin-bar {
	--fso-sticky-top: 32px;
}

@media (max-width: 782px) {
	.admin-bar {
		--fso-sticky-top: 46px;
	}
}

/* ==========================================================================
   Base
   ========================================================================== */

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

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

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--fso-white);
	color: var(--fso-text);
	font-family: var(--fso-font-body);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--fso-blue);
	font-weight: 600;
	text-decoration: none;
}

a:hover,
a:focus-visible {
	color: var(--fso-blue-dark);
	text-decoration: underline;
}

:focus-visible {
	outline: 2px solid var(--fso-blue);
	outline-offset: 2px;
}

strong,
b {
	font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--fso-navy);
	font-family: var(--fso-font-body);
	font-weight: 700;
	line-height: 1.2;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: calc(var(--fso-sticky-top) + 8px);
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	margin: 0;
	padding: 10px 16px;
	clip: auto;
	background: var(--fso-white);
	color: var(--fso-navy);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.button,
button,
input[type="submit"] {
	display: inline-block;
	padding: 10px 22px;
	border: 1px solid var(--fso-navy);
	border-radius: 0;
	background: var(--fso-navy);
	color: var(--fso-white);
	font-family: var(--fso-font-body);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease;
}

.button:hover,
.button:focus-visible,
button:hover,
button:focus-visible,
input[type="submit"]:hover {
	border-color: var(--fso-grey);
	background: var(--fso-grey);
	color: var(--fso-white);
	text-decoration: none;
}

/* ==========================================================================
   Header
   ========================================================================== */

.network-bar {
	display: flex;
	align-items: center;
	height: 48px;
	padding: 0 12px;
	background: var(--fso-navy-dark);
}

.network-bar__logo {
	display: block;
	line-height: 0;
}

.network-bar__logo img {
	width: 120px;
	height: auto;
}

.subnav {
	position: sticky;
	top: var(--fso-sticky-top);
	z-index: 100;
	background: var(--fso-grey-light);
	border-bottom: 10px solid var(--fso-grey-rule);
}

.site-header {
	display: contents;
}

.subnav__inner {
	max-width: var(--fso-wide);
	margin: 0 auto;
	padding: 0 var(--fso-gutter);
}

.subnav__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.subnav__list a {
	display: block;
	padding: 8px 15px 6px;
	color: var(--fso-grey);
	font-size: 20px;
	font-weight: 400;
	line-height: 26px;
	text-transform: uppercase;
	letter-spacing: .01em;
}

.subnav__list li:first-child a {
	padding-left: 0;
}

.subnav__list a:hover,
.subnav__list a:focus-visible {
	color: var(--fso-navy);
	text-decoration: none;
}

/* Anchors land below the sticky header. */
[id] {
	scroll-margin-top: calc(var(--fso-sticky-top) + var(--fso-subnav-h) + 16px);
}

/* ==========================================================================
   Page layout
   ========================================================================== */

.site-main {
	padding: 0 var(--fso-gutter) 60px;
}

.entry__section {
	max-width: var(--fso-content);
	margin: 0 auto;
	padding-top: 40px;
}

.entry__section--center {
	text-align: center;
}

.openings-logo {
	display: block;
	width: 460px;
	max-width: 70%;
	height: auto;
	margin: 20px auto 30px;
}

.entry__title {
	margin: 20px 0 30px;
	font-size: 36px;
	font-style: italic;
}

.entry__content {
	font-size: 20px;
	line-height: 1.3;
}

.entry__content > * {
	margin-top: 0;
	margin-bottom: 16px;
}

.entry__content p {
	margin: 0 0 16px;
}

.entry__content p > strong:only-child {
	display: block;
	margin-top: 4px;
	margin-bottom: -6px;
	font-weight: 700;
}

.entry__content ul,
.entry__content ol {
	padding-left: 1.4em;
}

.entry-list {
	padding-left: 1.2em;
}

/* Section headings in page content (".openings-heading" on the live site). */
.openings-heading,
.entry__content h3.openings-heading {
	margin: 28px 0 24px;
	color: var(--fso-navy);
	font-size: 32px;
	font-style: italic;
	font-weight: 700;
	line-height: 1.15;
	text-align: center;
}

.entry__content > .openings-heading:first-child {
	margin-top: 0;
}

#featured-openings {
	margin-top: 36px;
}

/* ==========================================================================
   Category chips (#comeet-nav in the page content)
   ========================================================================== */

ul#comeet-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 22px;
	margin: 0 0 40px;
	padding: 0;
	list-style: none;
}

ul#comeet-nav li {
	margin: 0;
	border: 1px solid var(--fso-grey);
}

ul#comeet-nav li a {
	display: block;
	padding: 10px 20px;
	color: var(--fso-blue);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	transition: background-color .15s ease, color .15s ease;
}

ul#comeet-nav li a:hover,
ul#comeet-nav li a:focus-visible {
	background: var(--fso-navy);
	color: var(--fso-white);
	text-decoration: none;
}

/* ==========================================================================
   Comeet: listings (overrides comeet-cards.css / comeet-reset.css)
   ========================================================================== */

.comeet-outer-wrapper {
	color: var(--fso-navy);
	font-size: 16px;
}

.comeet-outer-wrapper .comeet-g-r {
	margin-bottom: 44px;
	letter-spacing: normal;
	word-spacing: normal;
}

.comeet-outer-wrapper .comeet-u-1-2 {
	display: block;
	width: 100%;
}

.comeet-outer-wrapper .comeet-groups-list .comeet-group-name,
.comeet-outer-wrapper .comeet-groups-list .comeet-group-name a {
	margin: 0 0 18px;
	color: #000;
	font-size: 18px;
	font-weight: 700;
	text-decoration: none;
}

.comeet-outer-wrapper .comeet-groups-list .comeet-group-name a:hover {
	color: var(--fso-navy);
	text-decoration: underline;
}

/* Sub-page heading, e.g. "NBA". */
.comeet-outer-wrapper > h2.comeet-group-name {
	margin: 10px 0 30px;
	color: var(--fso-navy);
	font-size: 32px;
	font-style: italic;
	text-align: center;
}

.comeet-outer-wrapper .comeet-groups-list .comeet-list .comeet-positions-list,
.comeet-list .comeet-positions-list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 48px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.comeet-list li {
	float: none;
	width: auto;
	margin: 0;
}

/* Card: the whole <a> on the main listing, the <li> on category sub-pages. */
.comeet-list li a.comeet-position,
.comeet-list li.comeet-position {
	display: block;
	float: none;
	width: 100%;
	height: 100%;
	min-height: 75px;
	margin: 0;
	padding: 12px 10px 14px;
	border: 1px solid var(--fso-border);
	border-radius: 2px;
	background: var(--fso-white);
	box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
	color: var(--fso-blue);
	transition: box-shadow .15s ease, border-color .15s ease;
}

.comeet-list li a.comeet-position:hover,
.comeet-list li a.comeet-position:focus-visible,
.comeet-list li.comeet-position:hover,
.comeet-list li.comeet-position:focus-within {
	border-color: #bdbdbd;
	box-shadow: 0 3px 6px rgba(0, 0, 0, .18) !important;
	text-decoration: none;
}

.comeet-list li.comeet-position {
	position: relative;
}

/* Make the whole sub-page card clickable. */
.comeet-list li.comeet-position .comeet-position-name a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.comeet-outer-wrapper .comeet-list .comeet-position-name,
.comeet-outer-wrapper .comeet-groups-list .comeet-list .comeet-positions-list .comeet-position .comeet-position-name a {
	margin: 0 0 2px;
	color: var(--fso-blue);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

.comeet-outer-wrapper .comeet-list a.comeet-position:hover .comeet-position-name,
.comeet-outer-wrapper .comeet-list li.comeet-position:hover .comeet-position-name a {
	color: var(--fso-blue-dark);
}

.comeet-outer-wrapper .comeet-groups-list .comeet-list .comeet-positions-list .comeet-position .comeet-position-meta,
.comeet-outer-wrapper .comeet-list .comeet-position-meta {
	margin: 0;
	color: var(--fso-meta);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

/* ==========================================================================
   Comeet: back link + position page
   ========================================================================== */

.all-jobs-link {
	display: block;
	margin: 0 0 30px;
	padding: 12px 10px;
	border-top: 1px solid var(--fso-border);
	font-size: 16px;
}

.all-jobs-link a {
	font-weight: 600;
}

.comeet-outer-wrapper h2.comeet-position-name {
	margin: 0 0 20px;
	color: var(--fso-navy);
	font-size: 30px;
	font-style: italic;
	font-weight: 700;
	line-height: 1.2;
}

.comeet-position-meta-single {
	margin-bottom: 40px;
	color: var(--fso-grey);
	font-size: 14px;
}

.comeet-outer-wrapper .comeet-position-meta-single span.comeet-position-location {
	font-size: 14px;
}

.comeet-position-meta-single span {
	font-size: 14px;
}

.comeet-outer-wrapper .comeet-position-info h4,
.comeet-outer-wrapper .comeet-apply h4,
.comeet-apply h4 {
	margin: 36px 0 6px;
	color: var(--fso-navy);
	font-size: 18px;
	font-style: italic;
	font-weight: 700;
}

.comeet-outer-wrapper .comeet-position-info h4:first-child {
	margin-top: 0;
}

.comeet-position-info .comeet-user-text {
	font-size: 20px;
	line-height: 1.3;
}

.comeet-outer-wrapper .comeet-position-description p,
.comeet-outer-wrapper .comeet-position-requirements p,
.comeet-position-info .comeet-user-text p {
	margin: 0;
	padding: 0;
	line-height: 1.3;
}

.comeet-position-info .comeet-user-text strong {
	font-weight: 700;
}

.comeet-position-info .comeet-user-text > ul,
.comeet-position-info .comeet-user-text > ol {
	margin: 4px 0 6px 5px;
	padding: 4px 0 0 20px;
	font-size: 16px;
	line-height: 1.5;
}

.comeet-position-info .comeet-user-text li {
	line-height: 1.5;
}

.comeet-outer-wrapper .comeet-position-requirements ul {
	list-style: disc;
}

.comeet-apply {
	margin-top: 20px;
}

.comeet-social {
	margin-top: 30px;
	padding-top: 24px;
	border-top: 1px solid var(--fso-border);
}

/* ==========================================================================
   Footer: network
   ========================================================================== */

.site-footer {
	margin-top: 20px;
}

.network-footer {
	padding: 0 var(--fso-gutter) 28px;
	background: var(--fso-navy);
	color: var(--fso-white);
}

.network-footer__inner {
	max-width: var(--fso-wide);
	margin: 0 auto;
}

.network-footer__logo {
	display: inline-block;
	margin: -22px 0 0 -12px;
	line-height: 0;
}

.network-footer__logo img {
	width: 230px;
	height: auto;
}

.network-footer__cols {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 40px;
	margin-top: 20px;
}

.network-footer__col--wide {
	flex: 1 1 320px;
	max-width: 460px;
	margin-left: auto;
}

.network-footer h2 {
	margin: 0 0 6px;
	color: var(--fso-white);
	font-family: var(--fso-font-display);
	font-size: 26px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
}

.network-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.network-footer li,
.network-footer p {
	font-size: 17px;
	line-height: 1.4;
}

.network-footer p {
	margin: 0 0 10px;
}

.network-footer a {
	color: var(--fso-white);
	font-weight: 300;
}

.network-footer a:hover,
.network-footer a:focus-visible {
	color: var(--fso-white);
	text-decoration: underline;
}

.network-footer a.network-footer__apps {
	font-weight: 600;
}

.network-footer .network-footer__legal {
	margin: 40px auto 0;
	font-size: 16px;
	line-height: 1.6;
	text-align: center;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 767px) {
	body {
		font-size: 17px;
	}

	.entry__section {
		padding-top: 24px;
	}

	.openings-logo {
		max-width: 80%;
		margin-bottom: 24px;
	}

	.openings-heading,
	.entry__content h3.openings-heading,
	.comeet-outer-wrapper > h2.comeet-group-name {
		font-size: 26px;
	}

	.entry__content,
	.comeet-position-info .comeet-user-text {
		font-size: 18px;
	}

	.comeet-outer-wrapper h2.comeet-position-name {
		font-size: 26px;
	}

	.subnav__list a {
		padding: 8px 10px 6px;
		font-size: 18px;
	}

	ul#comeet-nav {
		gap: 10px;
	}

	ul#comeet-nav li a {
		padding: 8px 14px;
		font-size: 15px;
	}

	.comeet-outer-wrapper .comeet-groups-list .comeet-list .comeet-positions-list,
	.comeet-list .comeet-positions-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.comeet-outer-wrapper .comeet-g-r {
		margin-bottom: 32px;
	}

	.network-footer__col--wide {
		margin-left: 0;
	}
}
