/**
 * Explore CPT — Scioto Mile
 *
 * Typography:  Gotham (headings) · Open Sans (body)
 * Colors/fonts resolve from _variables.scss via --sm-* custom properties
 * (set by npm run build). Hardcoded fallbacks are active until then.
 *
 * Sections
 *   tokens · shared · buttons · hero · archive intro · archive directory
 *   info row · single body · sections · features · accordion
 *   prohibited · callouts · notice · sidebar · CTA · responsive
 */

/* ----------------------------------------------------------------- tokens */

:root {
	--expl-blue:         var(--sm-brand,       #00539b);
	--expl-navy:         var(--sm-dark-blue,   #023968);
	--expl-green:        var(--sm-green,       #008a5e);
	--expl-green-mid:    var(--sm-pale-green,  #33a180);
	--expl-green-light:  var(--sm-light-green, #d1eae2);
	--expl-ink:          var(--sm-dark,        #232020);
	--expl-border:       #e4e4e4;
	--expl-rule:         #979797;
	--expl-rule-light:   #a7a7a7;
	--expl-heading-font: var(--sm-gotham,    "Gotham", "Montserrat", -apple-system, sans-serif);
	--expl-body-font:    var(--sm-open-sans, "Open Sans", -apple-system, sans-serif);
	--expl-max:          var(--sm-inner-width, 1312px);
}

/* ------------------------------------------------------------------ shared */

.explore-archive,
.explore-single {
	font-family: var(--expl-body-font);
	color: var(--expl-ink);
}

/*
 * Dotted rule — 2px round-cap dots, 8px period.
 * Matches Sketch dash pattern [0, 6] / round linecap.
 */
.explore-info-card__rule,
.explore-callout__rule {
	display: block;
	height: 2px;
	background-image: radial-gradient(circle, var(--expl-rule) 1px, transparent 1.4px);
	background-size: 8px 2px;
	background-repeat: repeat-x;
}

.explore-info-card--dark .explore-info-card__rule,
.explore-callout--dark .explore-callout__rule {
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.6) 1px, transparent 1.4px);
}

/* ----------------------------------------------------------------- buttons */

.explore-button {
	display: inline-block;
	padding: 15px 34px;
	background: var(--expl-blue);
	color: #fff;
	font-family: var(--expl-heading-font);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.1;
	border-radius: 27px;
	text-decoration: none;
	text-align: center;
	transition: background-color 0.2s ease;
}

.explore-button:hover,
.explore-button:focus {
	background: var(--expl-navy);
	color: #fff;
}

.explore-button--small {
	padding: 10px 22px;
	font-size: 16px;
}

.explore-button--green {
	background: var(--expl-green-mid);
}

.explore-button--green:hover,
.explore-button--green:focus {
	background: var(--expl-green);
}

.explore-chip {
	display: inline-block;
	padding: 5px 14px;
	background: rgba(0, 83, 155, 0.11);
	border: 1px solid rgba(0, 83, 155, 0.18);
	border-radius: 16px;
	color: var(--expl-ink);
	font-size: 16px;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.explore-chip:hover,
.explore-chip:focus,
.explore-chip.is-active {
	background: var(--expl-blue);
	border-color: var(--expl-blue);
	color: #fff;
}

/* -------------------------------------------------------------------- hero */

.explore-hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	background-color: var(--expl-navy);
	background-size: cover;
	background-position: center;
	-webkit-clip-path: ellipse(75% 100% at 50% 0%);
	        clip-path: ellipse(75% 100% at 50% 0%);
}

.explore-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.25);
}

.explore-hero--archive {
	min-height: 463px;
	display: flex;
	align-items: stretch;
}

.explore-hero--single {
	min-height: 360px;
}

.explore-hero__inner {
	position: relative;
	width: 100%;
	max-width: var(--expl-max);
	margin: 0 auto;
	padding: 40px 9% 64px;
	display: flex;
	align-items: center;
	min-height: inherit;
}

.explore-hero__title {
	margin: 0;
	color: #fff;
	font-family: var(--expl-heading-font);
	font-size: clamp(44px, 7vw, 100px);
	font-weight: 700;
	line-height: 1;
}

/* ------------------------------------------------------- archive intro */

.explore-intro {
	padding: 56px 9%;
	overflow: visible;
}

.explore-intro__inner {
	display: grid;
	grid-template-columns: 550px 1fr;
	gap: 60px;
	max-width: var(--expl-max);
	margin: 0 auto;
	align-items: start;
	overflow: visible;
}

/*
 * Squiggly intro decoration — same asset as the homepage hero (Sketch
 * Group 4, viewBox 555x229). Pulled up via negative top so it overlaps
 * the hero's curved base, matching the homepage treatment.
 */
.explore-intro__deco {
	position: relative;
	top: -175px;
	margin-bottom: -175px;
	width: 550px;
	max-width: 100%;
	aspect-ratio: 555 / 229;
	justify-self: start;
	z-index: 5;
}

.explore-intro__deco svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

/* Draw-on animation: the stroked squiggly draws itself, then the
   arrowhead fades in. Triggered by .is-drawn (IntersectionObserver). */
.explore-intro__deco path[stroke] {
	stroke-dasharray: 1081;
	stroke-dashoffset: 1081;
	transition: stroke-dashoffset 2s cubic-bezier(0.45, 0, 0.25, 1);
}

.explore-intro__deco path[fill] {
	opacity: 0;
	transition: opacity 0.35s ease 1.55s;
}

.explore-intro__deco.is-drawn path[stroke] {
	stroke-dashoffset: 0;
}

.explore-intro__deco.is-drawn path[fill] {
	opacity: 1;
}

.explore-intro__heading {
	margin: 0 0 20px;
	font-family: var(--expl-heading-font);
	font-size: clamp(32px, 4vw, 50px);
	font-weight: 700;
	line-height: 1.05;
}

.explore-intro__body {
	font-size: 18px;
	line-height: 1.55;
}

.explore-intro__body p {
	margin: 0 0 16px;
}

.explore-intro .explore-button {
	margin-top: 30px;
}

/* -------------------------------------------------- archive directory */

.explore-directory {
	padding: 0 9% 80px;
}

.explore-directory__inner {
	display: grid;
	grid-template-columns: 295px 1fr;
	gap: 27px;
	max-width: var(--expl-max);
	margin: 0 auto;
	align-items: start;
}

/* Filter card — white rounded panel wrapping search + chips */
.explore-filters {
	position: sticky;
	top: 24px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
	padding: 30px;
}

/* Pill-shaped search input with icon on the right */
.explore-filters__search {
	position: relative;
	margin-bottom: 0;
}

.explore-filters__search input[type="text"] {
	width: 100%;
	padding: 9px 44px 9px 16px;
	border: 1px solid var(--expl-border);
	border-radius: 20px;
	font-family: var(--expl-body-font);
	font-size: 16px;
	color: var(--expl-ink);
	background: #fff;
	outline: none;
	box-sizing: border-box;
}

.explore-filters__search input[type="text"]:focus {
	border-color: var(--expl-blue);
}

.explore-filters__search button {
	position: absolute;
	top: 50%;
	right: 14px;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: #929292;
	cursor: pointer;
	padding: 0;
}

/* Dotted separator between search and filter — matches Sketch Line 2 */
.explore-filters__divider {
	display: block;
	height: 2px;
	margin: 24px 0;
	background-image: radial-gradient(circle, var(--expl-rule) 1px, transparent 1.4px);
	background-size: 8px 2px;
	background-repeat: repeat-x;
}

.explore-filters__group {
	/* no styles needed — just a semantic wrapper */
}

.explore-filters__label {
	margin: 0 0 20px;
	font-family: var(--expl-heading-font);
	font-size: 24px;
	font-weight: 700;
	color: var(--expl-ink);
}

.explore-filters__chips {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.explore-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.explore-card__link {
	display: block;
	text-decoration: none;
	color: var(--expl-ink);
	background: #fff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
}

.explore-card__media {
	display: block;
	position: relative;
	aspect-ratio: 295 / 368;
	overflow: hidden;
	background: var(--expl-green-light);
}

.explore-card__media .explore-card__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.explore-card__link:hover .explore-card__img,
.explore-card__link:focus .explore-card__img {
	transform: scale(1.04);
}

.explore-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 20px;
	min-height: 55px;
}

.explore-card__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

.explore-card__plus {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--expl-blue);
	color: #fff;
	transition: background-color 0.2s ease;
}

.explore-card__link:hover .explore-card__plus,
.explore-card__link:focus .explore-card__plus {
	background: var(--expl-navy);
}

.explore-pagination {
	margin-top: 48px;
}

.explore-empty {
	font-size: 18px;
}

/* --------------------------------------------------------- info card row */

.explore-info-cards-wrap {
	position: relative;
}

.explore-info-cards {
	padding: 0 9%;
	margin-top: 40px;
}

.explore-info-cards__inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 27px;
	max-width: var(--expl-max);
	margin: 0 auto;
}

.explore-info-card {
	padding: 29px 30px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
	min-height: 265px;
}

.explore-info-card__icon {
	display: block;
	margin-bottom: 14px;
	color: var(--expl-navy);
}

.explore-info-card__title {
	margin: 0 0 14px;
	font-family: var(--expl-heading-font);
	font-size: 22px;
	font-weight: 700;
	color: var(--expl-green);
}

.explore-info-card__rule {
	margin: 0 0 16px;
}

.explore-info-card__body {
	font-size: 16px;
	line-height: 1.4;
}

/* Dark card variant — e.g. Sensory Friendly Hour */
.explore-info-card--dark {
	background: var(--expl-ink);
}

.explore-info-card--dark .explore-info-card__icon,
.explore-info-card--dark .explore-info-card__body {
	color: #fff;
}

/*
 * Squiggly decoration behind the info card row.
 * Path traced from Sketch "Group 4" — 17-point open bezier, viewBox 1658x675.
 * Animates on scroll via IntersectionObserver + .is-drawn (see explore.php).
 */
.explore-info-cards__deco {
	position: absolute;
	top: -37px;
	left: -10%;
	width: 115.1%;
	aspect-ratio: 1658 / 675;
	z-index: -1;
	pointer-events: none;
	overflow: visible;
}

.explore-info-cards__deco svg {
	width: 100%;
	height: 100%;
	overflow: visible;
}

.explore-info-cards__deco path {
	stroke-dasharray: 3300;
	stroke-dashoffset: 3300;
	transition: stroke-dashoffset 2.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.explore-info-cards__deco.is-drawn path {
	stroke-dashoffset: 0;
}

/* ----------------------------------------------------------- single body */

.explore-body {
	padding: 56px 9% 80px;
}

.explore-body__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 404px;
	gap: 56px;
	max-width: var(--expl-max);
	margin: 0 auto;
	align-items: start;
}

.explore-body__heading {
	margin: 0 0 28px;
	font-family: var(--expl-heading-font);
	font-size: clamp(36px, 4.5vw, 60px);
	font-weight: 700;
	line-height: 1.05;
}

.explore-body__intro {
	font-size: 18px;
	line-height: 1.65;
}

.explore-body__intro p {
	margin: 0 0 20px;
}

/* ---------------------------------------------------------------- sections */

.explore-section {
	margin-top: 44px;
	padding-top: 40px;
	border-top: 2px dotted var(--expl-rule-light);
}

.explore-section--subsection,
.explore-section--notice,
.explore-section--prohibited + .explore-section--prohibited {
	margin-top: 40px;
	padding-top: 0;
	border-top: 0;
}

.explore-section__heading {
	margin: 0 0 20px;
	font-family: var(--expl-heading-font);
	font-size: clamp(30px, 3.5vw, 50px);
	font-weight: 700;
	line-height: 1.05;
}

.explore-section__subheading {
	margin: 0 0 20px;
	font-family: var(--expl-heading-font);
	font-size: 28px;
	font-weight: 700;
}

.explore-section__content {
	font-size: 18px;
	line-height: 1.65;
}

.explore-section__content p {
	margin: 0 0 18px;
}

.explore-section__content h3 {
	margin: 28px 0 14px;
	font-family: var(--expl-heading-font);
	font-size: 28px;
	font-weight: 700;
}

/* ---------------------------------------------------------------- features */

.explore-features {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 20px;
}

.explore-feature {
	padding: 22px 20px;
	background: #eef1f4;
	border-radius: 10px;
	min-height: 197px;
}

.explore-section--green .explore-feature {
	background: var(--expl-green-light);
}

.explore-feature__title {
	margin: 0 0 10px;
	font-family: var(--expl-heading-font);
	font-size: 18px;
	font-weight: 700;
	color: var(--expl-green);
}

.explore-feature__desc {
	margin: 0;
	font-size: 16px;
	line-height: 1.55;
}

/* --------------------------------------------------------------- accordion */

.explore-accordion {
	margin-top: 26px;
}

.explore-accordion__item {
	margin-bottom: 14px;
	background: #fff;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(2, 57, 104, 0.07);
}

.explore-accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 0 0 30px;
	min-height: 65px;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.explore-accordion__summary::-webkit-details-marker {
	display: none;
}

.explore-accordion__toggle {
	position: relative;
	order: 2;
	flex: 0 0 55px;
	align-self: stretch;
	background: var(--expl-green-mid);
	border-radius: 0 10px 10px 0;
}

.explore-accordion__toggle::before,
.explore-accordion__toggle::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	background: #fff;
	transform: translate(-50%, -50%);
}

.explore-accordion__toggle::before {
	width: 11px;
	height: 3px;
}

.explore-accordion__toggle::after {
	width: 3px;
	height: 11px;
	transition: opacity 0.15s ease;
}

.explore-accordion__item[open] .explore-accordion__toggle::after {
	opacity: 0;
}

.explore-accordion__content {
	padding: 6px 76px 22px 24px;
	font-size: 16px;
	line-height: 1.6;
}

/* ---------------------------------------------------------- prohibited list */

.explore-prohibited__label {
	margin: 30px 0 0;
	font-size: 18px;
	font-weight: 800;
}

.explore-prohibited {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
}

.explore-prohibited__item {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 18px 4px;
	border-bottom: 1px solid var(--expl-rule-light);
	font-size: 18px;
}

.explore-prohibited__item:first-child {
	border-top: 1px solid var(--expl-rule-light);
}

.explore-prohibited__icon {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 2px solid var(--expl-ink);
	border-radius: 50%;
	color: var(--expl-ink);
}

.explore-prohibited__icon::after {
	content: "";
	position: absolute;
	width: 2px;
	height: 44px;
	background: var(--expl-ink);
	transform: rotate(45deg);
	box-shadow: 0 0 0 2px #fff;
}

/* ----------------------------------------------------------------- callouts */

.explore-callouts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	margin-top: 30px;
}

.explore-callout {
	padding: 30px;
	border-radius: 20px;
	min-height: 301px;
}

.explore-callout--light {
	background: #fff;
	color: var(--expl-ink);
	box-shadow: 0 2px 14px rgba(2, 57, 104, 0.1);
}

.explore-callout--dark {
	background: var(--expl-ink);
	color: #fff;
}

.explore-callout__icon {
	display: block;
	margin-bottom: 8px;
}

.explore-callout__title {
	margin: 0 0 16px;
	font-family: var(--expl-heading-font);
	font-size: 24px;
	font-weight: 700;
	color: var(--expl-green);
}

.explore-callout__rule {
	margin-bottom: 18px;
}

.explore-callout__body {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
}

/* ------------------------------------------------------------------ notice */

.explore-notice {
	display: flex;
	align-items: center;
	min-height: 100px;
	padding: 22px 28px;
	background: var(--expl-green);
	border-radius: 10px;
}

.explore-notice__text {
	margin: 0;
	color: #fff;
	font-size: 18px;
	line-height: 1.55;
}

/* ----------------------------------------------------------------- sidebar */

.explore-sidebar {
	position: sticky;
	top: 24px;
	width: 100%;
}

.explore-map-card {
	padding: 20px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 2px 14px rgba(2, 57, 104, 0.1);
}

.explore-map-card__title {
	margin: 0 0 14px;
	font-family: var(--expl-heading-font);
	font-size: 24px;
	font-weight: 700;
}

.explore-map-card__media {
	margin-bottom: 18px;
	aspect-ratio: 339 / 274;
	border-radius: 12px;
	overflow: hidden;
}

.explore-map-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.explore-map-card__iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.explore-map-card__tags-label {
	margin: 26px 0 12px;
	font-family: var(--expl-heading-font);
	font-size: 24px;
	font-weight: 700;
}

.explore-map-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ----------------------------------------------------------------- CTA band */

.explore-cta {
	background: linear-gradient(110deg, #023968 0%, #0a5a86 55%, #2f8f6e 100%);
	padding: 72px 9%;
}

.explore-cta__inner {
	display: grid;
	grid-template-columns: 1fr 352px;
	gap: 60px;
	align-items: center;
	max-width: 1106px;
	margin: 0 auto;
}

.explore-cta__heading {
	margin: 0 0 18px;
	color: #fff;
	font-family: var(--expl-heading-font);
	font-size: clamp(32px, 4vw, 50px);
	font-weight: 700;
	line-height: 1.05;
}

.explore-cta__body {
	margin: 0 0 28px;
	color: #fff;
	font-size: 18px;
	line-height: 1.6;
	max-width: 515px;
}

/*
 * Circle photo — 352x352 fixed square so border-radius:50% always
 * produces a true circle regardless of image aspect ratio.
 * The dotted ring is an inline SVG circle in the template.
 */
.explore-cta__media {
	justify-self: end;
	position: relative;
	width: 352px;
	height: 352px;
	flex-shrink: 0;
}

.explore-cta__media svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	overflow: visible;
}

.explore-cta__img {
	position: absolute;
	inset: 14px;
	width: calc(100% - 28px) !important;
	height: calc(100% - 28px) !important;
	border-radius: 50%;
	object-fit: cover;
}

/*
 * Scoped to body.single-explore to prevent horizontal scroll from the
 * squiggly SVG without creating a stacking context that breaks sticky.
 */
body.single-explore {
	overflow-x: hidden;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 1080px) {
	.explore-info-cards__inner {
		grid-template-columns: repeat(2, 1fr);
	}

	.explore-body__inner {
		grid-template-columns: 1fr;
	}

	/* Map card rises above body content on single pages */
	.explore-sidebar {
		position: static;
		max-width: 100%;
		order: -1;
	}

	.explore-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Squiggly has no visual anchor when cards stack */
	.explore-info-cards__deco {
		display: none;
	}

	/* CTA: stack vertically, scale circle down */
	.explore-cta__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.explore-cta__media {
		width: 220px;
		height: 220px;
		justify-self: center;
	}

	.explore-cta__img {
		inset: 10px;
		width: calc(100% - 20px);
		height: calc(100% - 20px);
	}
}

@media (max-width: 820px) {
	.explore-intro__inner {
		grid-template-columns: 1fr;
	}

	.explore-intro__deco {
		display: none;
	}

	.explore-directory__inner {
		grid-template-columns: 1fr;
	}

	.explore-filters {
		position: static;
	}

	.explore-filters__chips {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.explore-cta__media {
		justify-self: center;
	}
}

@media (max-width: 600px) {
	.explore-grid,
	.explore-features,
	.explore-callouts,
	.explore-info-cards__inner {
		grid-template-columns: 1fr;
	}

	.explore-feature {
		min-height: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.explore-card__img,
	.explore-button,
	.explore-chip {
		transition: none;
	}

	.explore-intro__deco path[stroke],
	.explore-info-cards__deco path {
		transition: none;
		stroke-dashoffset: 0;
	}

	.explore-intro__deco path[fill] {
		transition: none;
		opacity: 1;
	}
}

