/*
Theme Name: Just Spectacular Theme
Author: EarthbreakDesigns
Description: A palette-agnostic base theme. Sitewide colors and markup are injected via Theme Options (Header Scripts, Navigation, Footer) so this shell can be reused across client sites.
Version: 1.3.1
Text Domain: just-spectacular-theme
*/

:root {
	--jst-accent: #0d9488;
	--jst-accent-hover: #0f766e;
	--jst-white: #ffffff;
	--jst-text: #1f2937;
	--jst-border: #e5e7eb;
	--jst-muted: #6b7280;
	--jst-bg-alt: #f9fafb;
}

/* ---------------------------------------------
   Base
--------------------------------------------- */
.jst-body {
	margin: 0;
}

.jst-container {
	width: 100%;
	max-width: 80rem;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	box-sizing: border-box;
}
 
/* ---------------------------------------------
   Heading Typography
--------------------------------------------- */
/* Bare element selectors on purpose — no ".jst-body" ancestor
   scope. This keeps specificity at the lowest tier (0,0,1) so
   any class-based styling (Tailwind utilities, custom component
   classes) on a heading wins automatically without !important.
   font-size, margin, and color are intentionally omitted — this
   block only exists as a fallback for un-classed headings (e.g.
   raw WYSIWYG content). */
h1, h2, h3, h4, h5, h6 {
	font-weight: 700;
	line-height: 1.25;
}

/* ---------------------------------------------
   Default Nav Fallback
--------------------------------------------- */
.jst-default-nav__list {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 1rem 1.5rem;
}

.jst-default-nav__list a {
	color: var(--jst-text);
	text-decoration: none;
}

.jst-default-nav__list a:hover {
	color: var(--jst-accent);
}

/* ---------------------------------------------
   Header / Nav
--------------------------------------------- */
.jst-header {
	background-color: var(--jst-white);
	border-bottom: 1px solid var(--jst-border);
}

.jst-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.jst-nav__logo {
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--jst-text);
	text-decoration: none;
}

.jst-nav__list {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.jst-nav__link {
	color: var(--jst-text);
	text-decoration: none;
}

.jst-nav__link:hover {
	color: var(--jst-accent);
}

.jst-nav__toggle {
	display: none;
}

/* ---------------------------------------------
   Buttons
--------------------------------------------- */
.jst-btn {
	display: inline-block;
	background-color: var(--jst-accent);
	color: var(--jst-white);
	border: none;
	border-radius: 0.375rem;
	padding: 0.625rem 1.25rem;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease-in-out;
}

.jst-btn:hover {
	background-color: var(--jst-accent-hover);
	color: var(--jst-white);
}

/* ---------------------------------------------
   Content / Archive Grid
--------------------------------------------- */
.jst-main {
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
}

h1.jst-page-title {
	font-size: 2rem;
	font-weight: 700;
	margin-top: 0;
	margin-bottom: 1.5rem;
}

/* ---------------------------------------------
   Hero / Breadcrumbs
--------------------------------------------- */
.jst-hero {
	background-color: var(--jst-bg-alt);
	border-bottom: 1px solid var(--jst-border);
	padding-top: 2.5rem;
	padding-bottom: 2.5rem;
}

h1.jst-hero__title {
	font-size: 2.25rem;
	font-weight: 700;
	margin-top: 0.5rem;
	margin-bottom: 0;
}

.jst-breadcrumbs {
	font-size: 0.875rem;
	color: var(--jst-muted);
}

.jst-breadcrumbs a {
	color: var(--jst-muted);
	text-decoration: none;
}

.jst-breadcrumbs a:hover {
	color: var(--jst-accent);
}

.jst-breadcrumbs__sep {
	margin: 0 0.4rem;
}

.jst-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}

.jst-card {
	border: 1px solid var(--jst-border);
	border-radius: 0.5rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.jst-card__thumb {
	width: 100%;
	height: 180px;
	object-fit: cover;
	display: block;
}

.jst-card__body {
	padding: 1.25rem;
}

.jst-card__title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 0.5rem;
}

.jst-card__title a {
	color: var(--jst-text);
	text-decoration: none;
}

.jst-card__title a:hover {
	color: var(--jst-accent);
}

.jst-card__meta {
	font-size: 0.8125rem;
	color: var(--jst-muted);
	margin: 0 0 0.5rem;
}

.jst-card__meta a {
	color: var(--jst-muted);
	text-decoration: none;
}

.jst-card__meta a:hover {
	color: var(--jst-accent);
}

.jst-card__meta-sep {
	margin: 0 0.35rem;
}

.jst-card__excerpt {
	color: var(--jst-muted);
	font-size: 0.95rem;
	margin: 0;
}

.jst-pagination {
	margin-top: 2.5rem;
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.jst-pagination a,
.jst-pagination span {
	display: inline-block;
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--jst-border);
	border-radius: 0.375rem;
	color: var(--jst-text);
	text-decoration: none;
}

.jst-pagination .current {
	background-color: var(--jst-accent);
	color: var(--jst-white);
	border-color: var(--jst-accent);
}

/* ---------------------------------------------
   Single Post
--------------------------------------------- */
h1.jst-single-title {
	font-size: 2.25rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--jst-border);
}

.jst-single-meta {
	color: var(--jst-muted);
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}

.jst-single-thumb {
	width: 100%;
	border-radius: 0.5rem;
	margin-bottom: 2rem;
}

.jst-single-content {
	line-height: 1.75;
}

.jst-single-content img {
	max-width: 100%;
	height: auto;
}

/* ---------------------------------------------
   Footer
--------------------------------------------- */
.jst-footer {
	background-color: var(--jst-text);
	color: var(--jst-white);
	margin-top: auto;
}

.jst-footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 2rem;
	padding-top: 3rem;
	padding-bottom: 3rem;
}

.jst-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding-top: 1.5rem;
	padding-bottom: 1.5rem;
	font-size: 0.875rem;
	text-align: center;
}
