/* Baguio City Guide — jobs board
   The board is a wall of paper slips. The one loud element is the depletion
   bar that shows how much of a listing's run is left; everything else stays
   quiet so the postings themselves read fast. */

.bcgj-wrap {
	--bcgj-ink: #16241e;
	--bcgj-pine: #1f5c46;
	--bcgj-fog: #dde3e0;
	--bcgj-mist: #f4f6f5;
	--bcgj-muted: #5d6b65;
	--bcgj-close: #9a4a12;
	--bcgj-paper: #ffffff;

	max-width: 46rem;
	margin: 0 auto;
	padding: 2.5rem 1.25rem 4rem;
	color: var(--bcgj-ink);
}

.bcgj-wrap a {
	color: var(--bcgj-pine);
}

.bcgj-vh {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------------------------------------------------------------- Masthead */

.bcgj-masthead {
	border-bottom: 2px solid var(--bcgj-ink);
	padding-bottom: 1.25rem;
	margin-bottom: 1.5rem;
}

.bcgj-masthead__title {
	font-size: clamp(2rem, 6vw, 2.9rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	margin: 0;
}

.bcgj-masthead__count {
	margin: 0.35rem 0 0.9rem;
	font-size: 1rem;
	color: var(--bcgj-pine);
	font-weight: 600;
}

.bcgj-masthead__lede {
	margin: 0;
	max-width: 38rem;
	color: var(--bcgj-muted);
	line-height: 1.65;
	font-size: 0.975rem;
}

.bcgj-flash {
	background: var(--bcgj-mist);
	border-left: 3px solid var(--bcgj-pine);
	padding: 0.85rem 1rem;
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
}

/* ---------------------------------------------------------------- Filters */

.bcgj-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 2rem;
	align-items: center;
}

.bcgj-filters__search {
	flex: 1 1 16rem;
}

.bcgj-filters input[type="search"],
.bcgj-filters select {
	width: 100%;
	font: inherit;
	font-size: 0.95rem;
	padding: 0.55rem 0.7rem;
	border: 1px solid var(--bcgj-fog);
	background: var(--bcgj-paper);
	color: var(--bcgj-ink);
	border-radius: 2px;
}

.bcgj-filters__select {
	flex: 1 1 9rem;
}

.bcgj-filters input:focus-visible,
.bcgj-filters select:focus-visible,
.bcgj-wrap a:focus-visible,
.bcgj-wrap button:focus-visible {
	outline: 2px solid var(--bcgj-pine);
	outline-offset: 2px;
}

.bcgj-filters button {
	font: inherit;
	font-size: 0.95rem;
	padding: 0.55rem 1.1rem;
	background: var(--bcgj-ink);
	color: #fff;
	border: 0;
	border-radius: 2px;
	cursor: pointer;
}

.bcgj-filters__clear {
	font-size: 0.9rem;
	text-decoration: underline;
}

/* ---------------------------------------------------------------- Slips */

.bcgj-board {
	display: flex;
	flex-direction: column;
	gap: 1px;
	background: var(--bcgj-fog);
	border-block: 1px solid var(--bcgj-fog);
}

.bcgj-slip {
	background: var(--bcgj-paper);
	padding: 1.25rem 1.25rem 1.15rem;
	border-left: 3px solid var(--bcgj-pine);
}

.bcgj-slip--closing {
	border-left-color: var(--bcgj-close);
}

.bcgj-slip__title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.bcgj-slip__title a {
	text-decoration: none;
	color: var(--bcgj-ink);
}

.bcgj-slip__title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bcgj-slip__who {
	margin: 0.3rem 0 0;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--bcgj-pine);
}

.bcgj-slip__where {
	display: block;
	font-weight: 400;
	color: var(--bcgj-muted);
	font-size: 0.9rem;
}

.bcgj-slip__facts {
	margin: 0.5rem 0 0;
	font-size: 0.9rem;
	color: var(--bcgj-muted);
}

.bcgj-sep {
	padding: 0 0.45rem;
	color: var(--bcgj-fog);
}

/* The one place this design raises its voice: time left on the board. */

.bcgj-life {
	margin-top: 0.85rem;
}

.bcgj-life__bar {
	height: 2px;
	background: var(--bcgj-fog);
	overflow: hidden;
}

.bcgj-life__bar span {
	display: block;
	height: 100%;
	background: var(--bcgj-pine);
}

.bcgj-slip--closing .bcgj-life__bar span {
	background: var(--bcgj-close);
}

.bcgj-life__text {
	margin: 0.4rem 0 0;
	font-size: 0.8rem;
	color: var(--bcgj-muted);
}

.bcgj-slip--closing .bcgj-life__text {
	color: var(--bcgj-close);
	font-weight: 600;
}

.bcgj-life--lg .bcgj-life__bar {
	height: 3px;
}

.bcgj-life--lg .bcgj-life__text {
	font-size: 0.875rem;
}

/* ---------------------------------------------------------------- Pager, empty */

.bcgj-pager {
	margin-top: 2rem;
	display: flex;
	gap: 0.4rem;
	justify-content: center;
	flex-wrap: wrap;
}

.bcgj-pager .page-numbers {
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--bcgj-fog);
	text-decoration: none;
	font-size: 0.9rem;
	border-radius: 2px;
}

.bcgj-pager .page-numbers.current {
	background: var(--bcgj-ink);
	color: #fff;
	border-color: var(--bcgj-ink);
}

.bcgj-empty {
	padding: 3rem 0;
	text-align: center;
	color: var(--bcgj-muted);
}

.bcgj-empty h2 {
	margin: 0 0 0.5rem;
	color: var(--bcgj-ink);
}

/* ---------------------------------------------------------------- Single */

.bcgj-crumb {
	font-size: 0.875rem;
	margin: 0 0 1.25rem;
}

.bcgj-closed {
	background: var(--bcgj-mist);
	border-left: 3px solid var(--bcgj-close);
	padding: 0.85rem 1rem;
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
}

.bcgj-head {
	border-bottom: 2px solid var(--bcgj-ink);
	padding-bottom: 1.25rem;
}

.bcgj-head__title {
	margin: 0;
	font-size: clamp(1.7rem, 5vw, 2.4rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
}

.bcgj-head__who {
	margin: 0.4rem 0 0;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--bcgj-pine);
}

.bcgj-facts {
	margin: 1.5rem 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 1rem 1.5rem;
}

.bcgj-facts div {
	border-top: 1px solid var(--bcgj-fog);
	padding-top: 0.6rem;
}

.bcgj-facts dt {
	font-size: 0.8rem;
	color: var(--bcgj-muted);
	margin-bottom: 0.15rem;
}

.bcgj-facts dd {
	margin: 0;
	font-size: 1rem;
	font-weight: 600;
}

.bcgj-body,
.bcgj-qual {
	line-height: 1.7;
	max-width: 36rem;
}

.bcgj-qual h2,
.bcgj-apply h2,
.bcgj-alerts__title {
	font-size: 1.15rem;
	margin: 2rem 0 0.75rem;
	letter-spacing: -0.01em;
}

.bcgj-qual ul {
	padding-left: 1.15rem;
}

.bcgj-qual li {
	margin-bottom: 0.35rem;
}

.bcgj-apply {
	background: var(--bcgj-mist);
	padding: 1.25rem 1.4rem 1.4rem;
	margin-top: 2rem;
	border-radius: 2px;
}

.bcgj-apply h2 {
	margin-top: 0;
}

.bcgj-apply__lead {
	font-size: 1.05rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
}

.bcgj-apply__note,
.bcgj-apply__alt {
	margin: 0.35rem 0;
	font-size: 0.95rem;
	line-height: 1.6;
}

.bcgj-apply__warn {
	margin: 1rem 0 0;
	padding-top: 0.85rem;
	border-top: 1px solid var(--bcgj-fog);
	font-size: 0.85rem;
	color: var(--bcgj-muted);
	line-height: 1.6;
}

.bcgj-btn {
	display: inline-block;
	background: var(--bcgj-pine);
	color: #fff !important;
	text-decoration: none;
	padding: 0.65rem 1.2rem;
	border-radius: 2px;
	font-weight: 600;
}

.bcgj-original {
	margin: 2rem 0 0;
}

.bcgj-original img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 1px solid var(--bcgj-fog);
}

.bcgj-original img + img {
	margin-top: 0.6rem;
}

.bcgj-original figcaption {
	font-size: 0.85rem;
	color: var(--bcgj-muted);
	margin-top: 0.5rem;
}

/* ---------------------------------------------------------------- Alerts */

.bcgj-alerts {
	margin-top: 3rem;
	border-top: 2px solid var(--bcgj-ink);
	padding-top: 1.5rem;
}

.bcgj-alerts__lede {
	color: var(--bcgj-muted);
	font-size: 0.95rem;
	line-height: 1.65;
	max-width: 36rem;
	margin: 0 0 1.1rem;
}

.bcgj-alerts__email span {
	display: block;
	font-size: 0.85rem;
	color: var(--bcgj-muted);
	margin-bottom: 0.25rem;
}

.bcgj-alerts__email input {
	font: inherit;
	width: 100%;
	max-width: 22rem;
	padding: 0.6rem 0.7rem;
	border: 1px solid var(--bcgj-fog);
	border-radius: 2px;
}

.bcgj-alerts__fields {
	border: 0;
	padding: 0;
	margin: 1.1rem 0;
}

.bcgj-alerts__fields legend {
	font-size: 0.85rem;
	color: var(--bcgj-muted);
	padding: 0;
	margin-bottom: 0.5rem;
}

.bcgj-alerts__checks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 0.35rem 1rem;
	font-size: 0.925rem;
}

.bcgj-alerts__checks label {
	display: flex;
	gap: 0.45rem;
	align-items: baseline;
}

.bcgj-alerts button {
	font: inherit;
	font-weight: 600;
	background: var(--bcgj-ink);
	color: #fff;
	border: 0;
	padding: 0.65rem 1.3rem;
	border-radius: 2px;
	cursor: pointer;
}

.bcgj-alerts button[disabled] {
	opacity: 0.55;
	cursor: progress;
}

.bcgj-alerts__status {
	margin: 0.75rem 0 0;
	font-size: 0.925rem;
	min-height: 1.2em;
}

.bcgj-alerts__status[data-state="error"] {
	color: var(--bcgj-close);
}

.bcgj-hp {
	position: absolute;
	left: -9999px;
}

/* ---------------------------------------------------------------- Notes */

.bcgj-note {
	margin-top: 2.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--bcgj-fog);
	font-size: 0.85rem;
	color: var(--bcgj-muted);
	line-height: 1.65;
}

.bcgj-note p {
	margin: 0 0 0.6rem;
}

.bcgj-source {
	font-style: italic;
}

.bcgj-board--embed {
	margin: 1.5rem 0;
}

.bcgj-board__more {
	font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
	.bcgj-wrap * {
		transition: none !important;
	}
}
