/**
 * Pack-Out Spot: Sign up, My teams, and the Join section of a team page.
 *
 * Colors fall back to the Pack-Out Spot palette when the theme does not
 * define the Astra global colors.
 */

.pos-ws {
	--pos-ink: var(--ast-global-color-8, #2f3232);
	--pos-accent: var(--ast-global-color-3, #863d14);
	--pos-accent-hover: var(--ast-global-color-0, #415840);
	--pos-line: #d9d4c8;
	--pos-muted: #5b6060;
	--pos-field: #7b7f7f;
	box-sizing: border-box;
	width: 100%;
	color: var(--pos-ink);
}

.pos-account {
	max-width: 560px;
}

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

.pos-ws h2 {
	margin: 0 0 0.5em;
	font-size: 1.75rem;
}

.pos-ws h3 {
	margin: 1.6em 0 0.5em;
	font-size: 1.25rem;
}

.pos-ws__view > h3:first-child,
.pos-ws__card > h3,
.pos-ws__panel h3 {
	margin-top: 0;
}

.pos-ws__muted,
.pos-ws__help {
	color: var(--pos-muted);
	font-size: 0.95rem;
	font-weight: 400;
}

.pos-ws__back {
	margin: 0 0 12px;
	font-size: 0.95rem;
}

.pos-ws__back a::before {
	content: "\2190\00a0";
}

/* Notices */

.pos-ws__notice {
	margin: 0 0 20px;
	padding: 12px 16px;
	border: 1px solid var(--pos-line);
	border-left-width: 4px;
	border-radius: 4px;
	background: #fff;
}

.pos-ws__notice--success {
	border-left-color: #2f6b3a;
}

.pos-ws__notice--info {
	border-left-color: #25486b;
}

.pos-ws__notice--warning {
	border-left-color: #b26200;
}

.pos-ws__notice--error {
	border-left-color: #b32d2e;
}

/* Header and tabs */

.pos-ws__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-bottom: 16px;
}

.pos-ws__head h2,
.pos-ws__head p {
	margin: 0;
}

.pos-ws__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}

.pos-ws__tabs {
	margin: 0 0 24px;
	border-bottom: 1px solid var(--pos-line);
	overflow-x: auto;
}

.pos-ws .pos-ws__tabs ul {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pos-ws__tabs li {
	margin: 0;
}

.pos-ws__tabs a {
	display: block;
	min-height: 44px;
	padding: 10px 14px;
	border-bottom: 3px solid transparent;
	color: var(--pos-ink);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.pos-ws__tabs a:hover,
.pos-ws__tabs a:focus-visible {
	border-bottom-color: var(--pos-line);
	color: var(--pos-ink);
}

.pos-ws__tabs a[aria-current="page"] {
	border-bottom-color: var(--pos-accent);
	color: var(--pos-accent);
}

/* Forms */

.pos-ws__form {
	margin: 0 0 20px;
	max-width: 640px;
}

.pos-ws__form--inline {
	display: inline-block;
	margin: 0;
	max-width: none;
}

.pos-ws__form--row {
	display: flex;
	flex-wrap: wrap;
	align-items: end;
	gap: 10px;
	margin: 12px 0 0;
}

.pos-ws__form--row .pos-ws__field {
	flex: 1 1 220px;
	margin: 0;
}

.pos-ws__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 16px;
}

.pos-ws__field label,
.pos-ws__set legend {
	font-weight: 600;
}

.pos-ws input[type="text"],
.pos-ws input[type="email"],
.pos-ws input[type="url"],
.pos-ws input[type="password"],
.pos-ws input[type="date"],
.pos-ws input[type="search"],
.pos-ws select,
.pos-ws textarea {
	width: 100%;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid var(--pos-field);
	border-radius: 4px;
	background: #fff;
	color: var(--pos-ink);
	font: inherit;
	line-height: 1.4;
}

.pos-ws input[type="file"] {
	max-width: 100%;
	font: inherit;
}

.pos-ws input:focus-visible,
.pos-ws select:focus-visible,
.pos-ws textarea:focus-visible,
.pos-ws button:focus-visible,
.pos-ws a:focus-visible,
.pos-ws summary:focus-visible {
	outline: 2px solid #25486b;
	outline-offset: 2px;
}

.pos-ws__pair {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0 16px;
}

.pos-ws__tick {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 12px;
	font-weight: 400;
	cursor: pointer;
}

.pos-ws__tick input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 3px 0 0;
}

.pos-ws__set {
	margin: 0 0 20px;
	padding: 14px 16px 6px;
	border: 1px solid var(--pos-line);
	border-radius: 4px;
}

.pos-ws__set legend {
	padding: 0 6px;
}

.pos-ws__set .pos-ws__help {
	margin: 0 0 12px;
}

.pos-ws__line {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
}

.pos-ws__filter {
	margin-bottom: 10px;
}

.pos-ws__list {
	max-height: 320px;
	margin-bottom: 8px;
	overflow-y: auto;
}

.pos-ws__item {
	padding: 8px 4px;
	border-bottom: 1px solid var(--pos-line);
	margin: 0;
}

.pos-ws__item[hidden] {
	display: none;
}

/* Kept in the page for scripts that fill every field, and out of sight for people. */
.pos-ws__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Buttons */

.pos-ws__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 20px;
}

.pos-ws .pos-ws__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 9px 18px;
	border: 1px solid var(--pos-field);
	border-radius: 4px;
	background: #fff;
	color: var(--pos-ink);
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
}

.pos-ws .pos-ws__button:hover {
	border-color: var(--pos-ink);
	background: #f6f4f0;
	color: var(--pos-ink);
}

.pos-ws .pos-ws__button--primary {
	border-color: var(--pos-accent);
	background: var(--pos-accent);
	color: #fff;
}

.pos-ws .pos-ws__button--primary:hover {
	border-color: var(--pos-accent-hover);
	background: var(--pos-accent-hover);
	color: #fff;
}

.pos-ws .pos-ws__button--danger {
	border-color: #b32d2e;
	color: #8a2424;
}

.pos-ws .pos-ws__button--danger:hover {
	background: #fcf0f1;
	color: #8a2424;
}

.pos-ws__aside {
	margin-top: 8px;
}

.pos-ws .pos-ws__who {
	margin: 40px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--pos-line);
	font-size: 0.9em;
}

/* Cards, rows, and facts */

.pos-ws .pos-ws__cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	gap: 16px;
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.pos-ws__card {
	margin: 0 0 16px;
	padding: 18px 20px;
	border: 1px solid var(--pos-line);
	border-radius: 6px;
	background: #fff;
}

.pos-ws__cards .pos-ws__card {
	margin: 0;
}

.pos-ws__card h3 {
	margin: 0 0 8px;
}

.pos-ws__card p:last-child {
	margin-bottom: 0;
}

.pos-ws__card--sponsor img {
	display: block;
	width: auto;
	max-width: 180px;
	max-height: 80px;
	margin-bottom: 10px;
}

.pos-ws .pos-ws__rows {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.pos-ws__rows li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0;
	padding: 10px 0;
	border-bottom: 1px solid var(--pos-line);
}

.pos-ws__rows--tall li {
	padding: 14px 0;
}

.pos-ws__group {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pos-ws__facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 18px;
	margin: 0 0 20px;
}

.pos-ws__facts dt {
	font-weight: 600;
}

.pos-ws__facts dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.pos-ws__figures {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 12px;
	margin: 0 0 24px;
}

.pos-ws__figures > div {
	padding: 12px 14px;
	border: 1px solid var(--pos-line);
	border-radius: 6px;
	background: #fff;
}

.pos-ws__figures dt {
	color: var(--pos-muted);
	font-size: 0.9rem;
}

.pos-ws__figures dd {
	margin: 2px 0 0;
	font-size: 1.5rem;
	font-weight: 700;
}

/* Panels that open */

.pos-ws__panel {
	margin: 0 0 20px;
	padding: 0 18px;
	border: 1px solid var(--pos-line);
	border-radius: 6px;
	background: #fff;
}

.pos-ws__panel > summary {
	min-height: 44px;
	margin: 0 -18px;
	padding: 12px 18px;
	font-weight: 600;
	cursor: pointer;
}

.pos-ws__panel[open] {
	padding-bottom: 18px;
}

.pos-ws__panel[open] > summary {
	margin-bottom: 8px;
	border-bottom: 1px solid var(--pos-line);
}

.pos-ws__panel--quiet {
	margin-top: 16px;
	border-style: dashed;
	background: transparent;
}

.pos-ws__card .pos-ws__panel--quiet {
	margin-bottom: 0;
}

/* Public pages: team, campaign, and sponsor credits */

.pos-team-page__about {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 18px;
	margin: 0 0 20px;
}

.pos-team-page__about dt {
	font-weight: 600;
}

.pos-team-page__about dd {
	margin: 0;
}

.pos-team-page__join {
	margin: 24px 0;
	padding: 20px 22px;
	border: 1px solid #d9d4c8;
	border-radius: 6px;
	background: #fff;
}

.pos-team-page .pos-team-page__join h2 {
	margin: 0 0 8px;
	font-size: 1.25rem;
}

.pos-team-page__join .pos-ws__actions,
.pos-team-page__join p:last-child {
	margin-bottom: 0;
}

.pos-campaign-page h2 {
	margin: 1.6em 0 0.5em;
	font-size: 1.5rem;
}

.pos-campaign-page dl {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 6px 18px;
	margin: 0 0 18px;
}

.pos-campaign-page dt {
	font-weight: 600;
}

.pos-campaign-page dd {
	margin: 0;
}

.pos-campaign-page .pos-team-page__missions {
	margin: 0;
	padding: 0;
	list-style: none;
}

.pos-campaign-page .pos-team-page__missions li {
	padding: 12px 0;
	border-bottom: 1px solid #d9d4c8;
}

.pos-campaign-page .pos-team-page__facts {
	display: block;
	color: #5b6060;
	font-size: 0.95rem;
}

.pos-sponsors {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 28px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.pos-sponsors__item {
	margin: 0;
}

.pos-sponsors__item img {
	display: block;
	width: auto;
	max-width: 180px;
	height: auto;
	max-height: 72px;
}

.pos-sponsors__name {
	font-weight: 600;
}

.pos-resources {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.pos-resources li {
	padding: 10px 0;
	border-bottom: 1px solid #d9d4c8;
}

.pos-resources__kind {
	margin-left: 6px;
	padding: 1px 8px;
	border: 1px solid #c9c9c9;
	border-radius: 999px;
	color: #5b6060;
	font-size: 0.8rem;
}

.pos-resources__note {
	display: block;
	color: #5b6060;
	font-size: 0.95rem;
}

@media (max-width: 600px) {
	.pos-ws__facts,
	.pos-team-page__about,
	.pos-campaign-page dl {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.pos-ws__facts dd,
	.pos-team-page__about dd,
	.pos-campaign-page dd {
		margin-bottom: 10px;
	}
}

/* Public Place page */

.pos-place-page__note {
	color: #5b6060;
	font-size: 0.95rem;
}

.pos-place-page .pos-map--place {
	margin: 24px 0;
}

/* Cleaning a Spot from its public page. */
.pos-claim {
	margin-block-start: var(--wp--preset--spacing--40, 2rem);
	padding-block-start: var(--wp--preset--spacing--30, 1.5rem);
	border-block-start: 1px solid var(--pos-line, #d9d4c8);
}

.pos-claim__state {
	font-weight: 600;
}

/* Team address. */
.pos-ws__address {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
}

.pos-ws__address-base {
	overflow-wrap: anywhere;
	color: var(--pos-muted, #5b6060);
	font-size: 0.9375rem;
}

.pos-ws .pos-ws__address input[type="text"] {
	flex: 1 1 12rem;
	width: auto;
	min-width: 0;
}

.pos-ws__address-status {
	display: block;
	min-height: 1.5em;
	font-size: 0.9375rem;
	overflow-wrap: anywhere;
}

.pos-ws__address-status[data-state="yes"] {
	color: #2f5d34;
	font-weight: 600;
}

.pos-ws__address-status[data-state="no"] {
	color: #a12a1b;
	font-weight: 600;
}

/* Logos. */
.pos-ws__logo {
	width: 3rem;
	height: 3rem;
	object-fit: contain;
	border-radius: 6px;
	background: #fff;
}

.pos-ws__logo--large {
	width: auto;
	max-width: 12rem;
	height: auto;
	max-height: 8rem;
}

.pos-ws__card-title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.pos-ws__card-title .pos-ws__logo {
	width: 2.25rem;
	height: 2.25rem;
}

.pos-team-page__logo {
	display: block;
	width: auto;
	max-width: min(14rem, 60%);
	height: auto;
	max-height: 9rem;
	margin-block-end: 1rem;
	object-fit: contain;
}

.pos-ws__shared {
	font-size: 0.95rem;
	overflow-wrap: anywhere;
}

/* Messages. */
.pos-ws__message summary {
	cursor: pointer;
}

.pos-ws__message summary .pos-ws__muted {
	display: block;
	margin-block-start: 0.15rem;
}

.pos-ws__message-body {
	margin-block-start: 0.75rem;
	overflow-wrap: anywhere;
}

.pos-ws__message-body p {
	margin: 0 0 0.9em;
}

/* My account. */
.pos-profile {
	max-width: 760px;
}

.pos-profile section {
	margin-block-start: 2.25rem;
	padding-block-start: 1.5rem;
	border-block-start: 1px solid var(--pos-line, #d9d4c8);
}

.pos-profile section.pos-ws__card {
	margin-block-start: 1rem;
	border-block-start-width: 1px;
}

.pos-profile__stats {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
	gap: 0.75rem;
	margin: 0 0 1rem;
}

.pos-profile__stats > div {
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--pos-line, #d9d4c8);
	border-radius: 8px;
	background: #fff;
}

.pos-profile__stats dt {
	color: var(--pos-muted, #5b6060);
	font-size: 0.875rem;
	font-weight: 400;
}

.pos-profile__stats dd {
	margin: 0.15rem 0 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.pos-profile__rule {
	margin-block: 2rem;
	border: 0;
	border-block-start: 1px solid var(--pos-line, #d9d4c8);
}
