/*
Theme Name:   Horizon for GeneratePress
Theme URI:    https://wordpress.org/themes/generatepress/
Description:  A GeneratePress child theme for Sun, Moon & Rising sign calculator sites. Deep-indigo header and footer, light reading pages, a "sun on the horizon" hero for the calculator, and styled blog elements (table of contents, key takeaways, FAQ, sign grid, tables, quotes). Pairs with the Sun Moon Rising Calculator plugin.
Author:       Naman
Template:     generatepress
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  horizon
*/

/* =========================================================
   1. Design tokens
   Midnight / Dusk = header, footer, hero
   Violet = links and interactive accents on light pages
   Gold = the "sun" (matches the calculator plugin)
   Paper / Mist = reading background and soft panels
   ========================================================= */
:root {
	--ink: #1b1938;
	--ink-soft: #4a4766;
	--ink-faint: #6b6889;
	--midnight: #14122f;
	--dusk: #2b1f63;
	--violet: #5b45b0;
	--violet-deep: #43308f;
	--gold: #f5c542;
	--gold-deep: #8a5a00;
	--paper: #f8f7fc;
	--mist: #e7e3f5;
	--white: #ffffff;
	--line: #d9d4ee;
	--on-dark: #e9e5ff;
	--on-dark-soft: #b9b2e6;

	--font-head: "Fraunces", Georgia, "Times New Roman", serif;
	--font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--measure: 44rem;
	--radius-s: 6px;
	--radius-m: 12px;
	--radius-l: 18px;

	/* Re-map GeneratePress global colours so Customizer defaults match the theme */
	--contrast: #1b1938;
	--contrast-2: #4a4766;
	--contrast-3: #6b6889;
	--base: #e7e3f5;
	--base-2: #f8f7fc;
	--base-3: #ffffff;
	--accent: #5b45b0;
}

/* =========================================================
   2. Base typography
   ========================================================= */
html { scroll-padding-top: 5.5rem; }

body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .widget-title, .page-title {
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--ink);
	line-height: 1.2;
	letter-spacing: -0.01em;
	font-variation-settings: "opsz" 96;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); margin-top: 2.4em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); margin-top: 1.9em; }
h4 { font-size: 1.15rem; }
h5, h6 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; }

p { margin-bottom: 1.25em; }

a { color: var(--violet); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover, a:focus { color: var(--violet-deep); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

::selection { background: var(--gold); color: var(--midnight); }

hr, .wp-block-separator {
	border: 0;
	height: 1px;
	background: var(--line);
	margin: 2.5rem auto;
	max-width: 100%;
}
.wp-block-separator.is-style-dots::before { color: var(--violet); }

/* =========================================================
   3. Header, logo, navigation
   ========================================================= */
.site-header {
	background: var(--midnight);
	border-bottom: 1px solid rgba(245, 197, 66, 0.25);
	position: sticky;
	top: 0;
	z-index: 50;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.inside-header { padding-top: 14px; padding-bottom: 14px; }

.main-title { margin: 0; line-height: 1; font-size: 1.4rem; }
.main-title a,
.main-title a:visited {
	font-family: var(--font-head);
	font-weight: 600;
	color: var(--white);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}
.main-title a:hover { color: var(--gold); }
/* Brand mark: a half-filled circle, the sun at the horizon */
.main-title a::before {
	content: "";
	width: 0.8em;
	height: 0.8em;
	margin-right: 0.55em;
	border-radius: 50%;
	border: 2px solid var(--gold);
	background: linear-gradient(to top, var(--gold) 50%, transparent 50%);
	flex: none;
}
.site-description { color: var(--on-dark-soft); font-size: 0.85rem; margin: 4px 0 0; }

.main-navigation,
.main-navigation ul ul,
.main-navigation .main-nav ul li.menu-item-has-children > ul { background: transparent; }

.main-navigation .main-nav ul li a,
.main-navigation .menu-toggle,
.main-navigation .menu-bar-items a {
	color: var(--on-dark);
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 500;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus > a,
.main-navigation .main-nav ul li.sfHover > a,
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	color: var(--gold);
	background: transparent;
}
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
	box-shadow: inset 0 -2px 0 var(--gold);
}
.main-navigation ul ul {
	background: var(--midnight);
	border: 1px solid rgba(245, 197, 66, 0.25);
	border-radius: var(--radius-s);
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}
.main-navigation .main-nav ul ul li a { font-size: 0.9rem; }
.main-navigation .main-nav ul ul li:hover > a { background: var(--dusk); }

/* Mobile menu panel */
@media (max-width: 768px) {
	.main-navigation.toggled .main-nav > ul {
		background: var(--midnight);
		border-top: 1px solid rgba(245, 197, 66, 0.25);
	}
	.main-navigation .main-nav ul li a { padding-left: 20px; padding-right: 20px; }
}

/* Breadcrumbs (Rank Math, Yoast, or any #breadcrumbs / .breadcrumbs wrapper) */
.rank-math-breadcrumb,
#breadcrumbs,
.breadcrumbs,
.yoast-breadcrumbs {
	font-size: 0.85rem;
	color: var(--ink-faint);
	margin: 0 0 1.25rem;
}
.rank-math-breadcrumb a, #breadcrumbs a, .breadcrumbs a, .yoast-breadcrumbs a { color: var(--ink-soft); }
.rank-math-breadcrumb .separator { margin: 0 0.4em; }

/* =========================================================
   4. Calculator hero ("sun on the horizon")
   Use the "Calculator hero" block pattern, or add class hz-hero to a group.
   ========================================================= */
.hz-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-bottom: 2.5rem;
	padding: clamp(2.5rem, 6vw, 4.25rem) 1.25rem clamp(3rem, 7vw, 5rem);
	color: var(--white);
	background:
		radial-gradient(90% 60% at 50% 115%, rgba(245, 197, 66, 0.28) 0%, rgba(245, 197, 66, 0) 62%),
		linear-gradient(180deg, var(--midnight) 0%, #261b5c 100%);
}
/* Faint stars */
.hz-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		radial-gradient(1.5px 1.5px at 8% 18%, #fff, transparent),
		radial-gradient(1px 1px at 17% 52%, #fff, transparent),
		radial-gradient(1.5px 1.5px at 29% 12%, #fff, transparent),
		radial-gradient(1px 1px at 41% 36%, #fff, transparent),
		radial-gradient(1.5px 1.5px at 58% 9%, #fff, transparent),
		radial-gradient(1px 1px at 66% 44%, #fff, transparent),
		radial-gradient(1.5px 1.5px at 79% 20%, #fff, transparent),
		radial-gradient(1px 1px at 91% 38%, #fff, transparent),
		radial-gradient(1px 1px at 95% 8%, #fff, transparent);
	opacity: 0.55;
}
/* The horizon: a large dark disc whose upper edge is a thin gold line */
.hz-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	left: 50%;
	bottom: -120%;
	width: 170%;
	aspect-ratio: 1;
	transform: translateX(-50%);
	border-radius: 50%;
	border-top: 2px solid rgba(245, 197, 66, 0.7);
	background: var(--midnight);
	box-shadow: 0 -24px 90px rgba(245, 197, 66, 0.22);
}
.hz-hero > * { position: relative; }
.hz-hero h1,
.hz-hero h2 { color: var(--white); text-align: center; margin: 0 auto 0.5rem; max-width: 24ch; }
.hz-hero .hz-lede {
	text-align: center;
	color: var(--on-dark);
	max-width: 40rem;
	margin: 0 auto 1.75rem;
	font-size: 1.1rem;
}
.hz-hero #smr-calculator {
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(245, 197, 66, 0.3);
}

/* Trust line under the calculator */
.hz-trust {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.5rem;
	margin: 1.5rem auto 0;
	padding: 0;
	font-size: 0.9rem;
	color: var(--on-dark);
}
.hz-trust li { margin: 0; padding: 0; }
.hz-trust li::before { content: "\2713"; color: var(--gold); font-weight: 700; margin-right: 0.45em; }

/* Calculator pages: let the hero run edge to edge under the header, keep text in a reading column */
.has-smr-calculator .site-content { padding-top: 0; }
.has-smr-calculator .site-main,
.has-smr-calculator.separate-containers .site-main,
.has-smr-calculator.one-container .site-main { margin-top: 0; }
.has-smr-calculator .content-area,
.has-smr-calculator .site-content,
.has-smr-calculator #page,
.has-smr-calculator .grid-container { margin-top: 0; }
.has-smr-calculator.separate-containers .inside-article,
.has-smr-calculator.one-container .inside-article { padding: 0; }
.has-smr-calculator .hz-hero { margin-top: 0; }
.has-smr-calculator .inside-article,
.has-smr-calculator.page .inside-article,
.has-smr-calculator.single .inside-article {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
}
.has-smr-calculator .entry-content > :not(.hz-hero) { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.has-smr-calculator .entry-content > .hz-signs,
.has-smr-calculator .entry-content > .hz-big3 { max-width: 56rem; }
.has-smr-calculator .entry-header { display: none; }

/* Calculator pages: cancel GeneratePress spacing above and below the hero (higher specificity than GP's defaults) */
body.has-smr-calculator .entry-content,
body.has-smr-calculator .entry-content:not(:first-child) { margin-top: 0; }
body.has-smr-calculator .site-main > article,
body.has-smr-calculator .site-main > .inside-article { margin-bottom: 0; }
body.has-smr-calculator .hz-hero { margin-bottom: 0; }
body.has-smr-calculator .hz-hero + * { margin-top: 2.5rem; }
body.has-smr-calculator .hz-hero + p:empty,
body.has-smr-calculator .hz-hero + br { display: none; }
body.has-smr-calculator .site-content,
body.has-smr-calculator .content-area,
body.has-smr-calculator .site-main { padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; }
body.has-smr-calculator .site-footer { margin-top: 0; }

/* Footer: note on top, copyright line below, centred */
.site-info .inside-site-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.4rem;
}
.site-info .copyright-bar { float: none; text-align: center; }

/* When a page has the calculator but no hero, keep it comfortably spaced */
.entry-content #smr-calculator { margin-top: 1.5rem; margin-bottom: 2.5rem; }

/* =========================================================
   5. Blog archive (home, category, tag, search)
   Entries are a thumbnail + text row, separated by hairlines
   ========================================================= */
.blog .site-main > article,
.archive .site-main > article,
.search .site-main > article { margin-bottom: 0; }

.blog .inside-article,
.archive .inside-article,
.search .inside-article {
	display: grid;
	grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
	column-gap: 1.75rem;
	align-items: start;
	background: transparent;
	padding: 1.75rem 0;
	border-bottom: 1px solid var(--line);
}
.blog .inside-article:not(:has(.post-image)),
.archive .inside-article:not(:has(.post-image)),
.search .inside-article:not(:has(.post-image)) { display: block; }

.blog .post-image,
.archive .post-image,
.search .post-image { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
.blog .post-image img,
.archive .post-image img,
.search .post-image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius-s);
}
.blog .inside-article > *:not(.post-image),
.archive .inside-article > *:not(.post-image),
.search .inside-article > *:not(.post-image) { grid-column: 2; }

.blog .entry-title,
.archive .entry-title,
.search .entry-title { font-size: 1.45rem; margin: 0 0 0.35rem; }
.entry-title a, .entry-title a:visited { color: var(--ink); text-decoration: none; }
.entry-title a:hover { color: var(--violet); text-decoration: underline; text-decoration-thickness: 2px; }

.entry-meta, .entry-meta a { font-size: 0.85rem; color: var(--ink-faint); }
.entry-meta a:hover { color: var(--violet); }
.entry-summary p { color: var(--ink-soft); margin-bottom: 0.75em; }
.read-more, a.read-more { font-weight: 600; font-size: 0.95rem; }

.page-header { margin-bottom: 1.5rem; }
.page-title { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.taxonomy-description { color: var(--ink-soft); max-width: var(--measure); }

@media (max-width: 640px) {
	.blog .inside-article,
	.archive .inside-article,
	.search .inside-article { display: block; }
	.blog .post-image,
	.archive .post-image,
	.search .post-image { margin-bottom: 1rem; }
}

/* Pagination */
.paging-navigation .nav-links,
.page-numbers { font-size: 0.95rem; }
.nav-links .page-numbers {
	display: inline-block;
	min-width: 2.4rem;
	text-align: center;
	padding: 0.35rem 0.7rem;
	margin-right: 0.25rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-s);
	color: var(--ink);
	text-decoration: none;
	background: var(--white);
}
.nav-links .page-numbers.current,
.nav-links a.page-numbers:hover {
	background: var(--dusk);
	border-color: var(--dusk);
	color: var(--white);
}

/* =========================================================
   6. Single posts and pages
   ========================================================= */
.single .inside-article,
.page .inside-article {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-l);
	padding: clamp(1.5rem, 4vw, 3.25rem);
}
.single .entry-header,
.single .entry-content,
.single .entry-meta,
.page .entry-header,
.page .entry-content { max-width: var(--measure); margin-left: auto; margin-right: auto; }

.single .entry-title,
.page .entry-title { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: 0.5rem; }
.single .entry-header .entry-meta { margin-bottom: 0.5rem; }

.hz-readmeta { display: flex; gap: 1.25rem; margin: 0 0 1.5rem; font-size: 0.9rem; color: var(--ink-faint); }

.single .featured-image,
.single .post-image { margin: 0 auto 2rem; max-width: 56rem; }
.single .featured-image img,
.single .post-image img { border-radius: var(--radius-m); width: 100%; }

.entry-content > p:first-of-type,
.entry-content > .wp-block-paragraph:first-of-type { font-size: 1.2rem; color: var(--ink-soft); line-height: 1.65; }

.entry-content a { text-decoration-line: underline; }

/* Lists with a small gold bullet */
.entry-content ul:not([class]) { list-style: none; padding-left: 0; margin-left: 0; }
.entry-content ul:not([class]) > li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; }
.entry-content ul:not([class]) > li::before {
	content: "";
	position: absolute;
	left: 0.25rem;
	top: 0.72em;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--gold);
	box-shadow: 0 0 0 2px var(--mist);
}
.entry-content ol:not([class]) { padding-left: 1.4rem; margin-left: 0; }
.entry-content ol:not([class]) > li { margin-bottom: 0.5rem; padding-left: 0.3rem; }
.entry-content ol:not([class]) > li::marker { color: var(--violet); font-weight: 700; }

/* Quotes */
blockquote,
.wp-block-quote {
	margin: 2rem 0;
	padding: 0.25rem 0 0.25rem 1.5rem;
	border-left: 4px solid var(--violet);
	font-family: var(--font-head);
	font-size: 1.25rem;
	font-style: italic;
	line-height: 1.5;
	color: var(--ink);
}
blockquote p:last-child { margin-bottom: 0; }
blockquote cite, .wp-block-quote cite {
	display: block;
	margin-top: 0.6rem;
	font-family: var(--font-body);
	font-size: 0.9rem;
	font-style: normal;
	color: var(--ink-faint);
}
.wp-block-pullquote {
	border-top: 2px solid var(--gold);
	border-bottom: 2px solid var(--gold);
	padding: 1.75rem 1rem;
}
.wp-block-pullquote blockquote { border: 0; padding: 0; text-align: center; font-size: 1.5rem; }

/* Tables: scoped so the calculator's own result table is untouched */
.entry-content > table,
.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
	margin: 1.75rem 0;
	background: var(--white);
}
.entry-content > table th,
.wp-block-table th {
	background: var(--dusk);
	color: var(--white);
	font-weight: 600;
	text-align: left;
	padding: 0.7rem 0.9rem;
	border: 0;
}
.entry-content > table td,
.wp-block-table td {
	padding: 0.65rem 0.9rem;
	border: 0;
	border-bottom: 1px solid var(--line);
}
.entry-content > table tr:nth-child(even) td,
.wp-block-table tr:nth-child(even) td { background: var(--paper); }
.wp-block-table { overflow-x: auto; }
.wp-block-table figcaption, .wp-element-caption { font-size: 0.85rem; color: var(--ink-faint); text-align: center; margin-top: 0.5rem; }

/* Code */
code, kbd, samp {
	font-size: 0.9em;
	background: var(--mist);
	color: var(--ink);
	padding: 0.15em 0.4em;
	border-radius: 4px;
}
pre {
	background: var(--midnight);
	color: var(--on-dark);
	padding: 1.1rem 1.25rem;
	border-radius: var(--radius-m);
	overflow-x: auto;
	font-size: 0.9rem;
	line-height: 1.6;
}
pre code { background: transparent; color: inherit; padding: 0; }

/* Images and captions */
.entry-content img { border-radius: var(--radius-s); }
figure { margin: 2rem 0; }
figcaption { font-size: 0.85rem; color: var(--ink-faint); margin-top: 0.5rem; }

/* Buttons (theme and block buttons; the calculator's own button is styled by the plugin) */
button,
html input[type="button"],
input[type="reset"],
input[type="submit"],
a.button,
a.wp-block-button__link:not(.has-background),
.wp-block-button__link:not(.has-background) {
	background: var(--gold);
	color: var(--midnight);
	font-family: var(--font-body);
	font-weight: 700;
	border: 0;
	border-radius: 999px;
	padding: 0.7em 1.5em;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}
button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover,
a.button:hover,
.wp-block-button__link:not(.has-background):hover {
	background: #ffd45f;
	color: var(--midnight);
	text-decoration: none;
}
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--violet);
	border: 2px solid var(--violet);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--violet); color: var(--white); }

/* Forms */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="tel"], input[type="number"], input[type="date"],
input[type="time"], textarea, select {
	background: var(--white);
	color: var(--ink);
	border: 1px solid #bdb6e0;
	border-radius: var(--radius-s);
	padding: 0.7rem 0.85rem;
	font-family: var(--font-body);
	font-size: 1rem;
}
input:focus, textarea:focus, select:focus {
	border-color: var(--violet);
	outline: 3px solid rgba(91, 69, 176, 0.25);
	outline-offset: 0;
	color: var(--ink);
	background: var(--white);
}
label { font-weight: 500; font-size: 0.95rem; }

/* =========================================================
   7. Article components (use the block patterns, or add these classes)
   ========================================================= */

/* Table of contents (auto-inserted on posts with 3+ headings) */
.hz-toc {
	margin: 1.75rem 0 2.25rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-left: 4px solid var(--gold);
	border-radius: var(--radius-s);
	font-size: 0.97rem;
}
.hz-toc summary {
	cursor: pointer;
	padding: 0.85rem 1.1rem;
	font-family: var(--font-head);
	font-weight: 600;
	font-size: 1.1rem;
	color: var(--ink);
}
.entry-content .hz-toc ol, .hz-toc ol { margin: 0; padding: 0 1.1rem 1rem 2.6rem; }
.hz-toc li { margin: 0.3rem 0; padding-left: 0.2rem; }
.hz-toc li.hz-toc-sub { margin-left: 1.1rem; list-style-type: circle; font-size: 0.93rem; }
.hz-toc a { text-decoration: none; color: var(--violet); }
.hz-toc a:hover { text-decoration: underline; }

/* Key takeaways: the one dark block inside an article */
.hz-takeaways {
	margin: 1.75rem 0 2.25rem;
	padding: 1.25rem 1.5rem;
	background: var(--dusk);
	color: var(--on-dark);
	border-radius: var(--radius-m);
}
.hz-takeaways h2,
.hz-takeaways h3,
.hz-takeaways .hz-takeaways-title {
	margin: 0 0 0.6rem;
	font-family: var(--font-head);
	font-size: 1.3rem;
	color: var(--white);
}
.hz-takeaways ul { margin: 0; }
.hz-takeaways li { color: var(--on-dark); }
.entry-content .hz-takeaways ul:not([class]) > li::before { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18); }
.hz-takeaways a { color: var(--gold); }

/* Callouts: .hz-callout (note) and .hz-callout.is-warning (accuracy / timezone caveats) */
.hz-callout {
	margin: 1.75rem 0;
	padding: 1rem 1.25rem;
	background: var(--mist);
	border-left: 4px solid var(--violet);
	border-radius: 0 var(--radius-s) var(--radius-s) 0;
}
.hz-callout.is-warning { background: #fff4d6; border-left-color: var(--gold-deep); }
.hz-callout > :last-child { margin-bottom: 0; }
.hz-callout strong:first-child { color: var(--ink); }

/* FAQ: native details/summary, no JavaScript */
.hz-faq { margin: 2rem 0; }
.hz-faq details {
	border-bottom: 1px solid var(--line);
	padding: 0.2rem 0;
}
.hz-faq details:first-child { border-top: 1px solid var(--line); }
.hz-faq summary {
	cursor: pointer;
	padding: 0.9rem 2rem 0.9rem 0;
	font-weight: 600;
	color: var(--ink);
	list-style: none;
	position: relative;
}
.hz-faq summary::-webkit-details-marker { display: none; }
.hz-faq summary::after {
	content: "+";
	position: absolute;
	right: 0.25rem;
	top: 0.55rem;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--violet);
}
.hz-faq details[open] summary::after { content: "\2212"; }
.hz-faq details > :not(summary) { margin: 0 0 1rem; color: var(--ink-soft); }

/* Sign grid: [smr_sign_grid] shortcode */
.hz-signs {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
	gap: 0.75rem;
	margin: 1.5rem 0 2rem;
	padding: 0;
}
.hz-signs li { margin: 0; padding: 0; }
.hz-signs a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
	padding: 0.9rem 0.5rem;
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
	text-decoration: none;
	color: var(--ink);
	font-weight: 600;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
.hz-signs a:hover { border-color: var(--violet); background: var(--paper); color: var(--violet-deep); }
.hz-signs .glyph { font-size: 1.9rem; line-height: 1.1; color: var(--violet); font-family: "Segoe UI Symbol", "Noto Sans Symbols", "Apple Symbols", sans-serif; }

/* Big Three reading: three columns for Sun / Moon / Rising summaries */
.hz-big3 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
	gap: 1rem;
	margin: 1.75rem 0;
}
.hz-big3 > div {
	padding: 1.1rem 1.15rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-top: 3px solid var(--gold);
	border-radius: var(--radius-s);
}
.hz-big3 h3 { margin: 0 0 0.35rem; font-size: 1.15rem; }
.hz-big3 p { margin: 0; font-size: 0.97rem; color: var(--ink-soft); }

/* Author box (works with most author-box plugins) */
.author-box, .saboxplugin-wrap, .wp-block-post-author {
	margin-top: 2.5rem;
	padding: 1.25rem;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
}

/* Next / previous post links */
.post-navigation, .nav-links { margin-top: 1rem; }
.post-navigation a { font-weight: 600; text-decoration: none; }

/* Tags and categories under posts */
footer.entry-meta .cat-links a,
footer.entry-meta .tags-links a {
	display: inline-block;
	margin: 0 0.3rem 0.3rem 0;
	padding: 0.15rem 0.7rem;
	background: var(--mist);
	color: var(--ink);
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.82rem;
}
footer.entry-meta .cat-links a:hover,
footer.entry-meta .tags-links a:hover { background: var(--dusk); color: var(--white); }

/* =========================================================
   8. Sidebar and widgets
   ========================================================= */
.sidebar .widget,
.footer-widgets .widget { font-size: 0.95rem; }
.sidebar .widget {
	background: var(--white);
	border: 1px solid var(--line);
	border-radius: var(--radius-m);
	padding: 1.25rem;
	margin-bottom: 1.25rem;
}
.sidebar .widget-title {
	font-size: 1.15rem;
	margin: 0 0 0.75rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--gold);
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: 0.4rem 0; border-bottom: 1px solid var(--mist); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { text-decoration: none; }
.sidebar .widget a:hover { text-decoration: underline; }
.tagcloud a {
	display: inline-block;
	margin: 0 0.25rem 0.35rem 0;
	padding: 0.2rem 0.65rem;
	background: var(--mist);
	color: var(--ink) !important;
	border-radius: 999px;
	font-size: 0.85rem !important;
	text-decoration: none;
}
.tagcloud a:hover { background: var(--dusk); color: var(--white) !important; }

.search-form { display: flex; gap: 0.5rem; }
.search-form label { flex: 1; margin: 0; }
.search-form .search-field { width: 100%; }
.search-form .search-submit { padding: 0.6em 1.1em; }

/* =========================================================
   9. Comments
   ========================================================= */
.comments-area { margin-top: 2.5rem; }
.comments-title, .comment-reply-title { font-size: 1.5rem; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-author .fn { font-weight: 600; font-style: normal; }
.comment-metadata a { color: var(--ink-faint); font-size: 0.85rem; }
.comment-respond { background: var(--paper); border-radius: var(--radius-m); padding: 1.5rem; }

/* =========================================================
   10. 404 and no-results
   ========================================================= */
.error404 .inside-article,
.no-results .inside-article { text-align: center; padding: 3rem 1.5rem; }
.error404 .entry-title { font-size: clamp(2rem, 5vw, 3rem); }

/* =========================================================
   11. Footer: brand column, link columns, quiet bottom bar
   Suggested widgets: 1 = Custom HTML (brand + one sentence), 2 = Navigation Menu "Quick links", 3 = Navigation Menu "Explore"
   ========================================================= */
.site-footer { background: var(--midnight); color: var(--on-dark-soft); margin-top: 3rem; }
.footer-widgets {
	background:
		radial-gradient(60% 120% at 50% 0%, rgba(245, 197, 66, 0.10) 0%, rgba(245, 197, 66, 0) 70%),
		var(--midnight);
	color: var(--on-dark-soft);
	padding: 3.25rem 0 2.25rem;
	border-top: 1px solid rgba(245, 197, 66, 0.35);
}
.footer-widgets .inside-footer-widgets {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr;
	gap: 2.5rem;
	align-items: start;
}
.footer-widgets .inside-footer-widgets > div {
	width: auto !important;
	flex: none !important;
	margin: 0 !important;
	padding: 0 !important;
}
.footer-widgets .widget { margin: 0; font-size: 0.95rem; line-height: 1.6; }
.footer-widgets .widget-title,
.footer-widgets .widget h2,
.footer-widgets .wp-block-heading {
	position: relative;
	margin: 0 0 1.1rem;
	padding-bottom: 0.7rem;
	font-family: var(--font-head);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--white);
}
.footer-widgets .widget-title::after,
.footer-widgets .widget h2::after,
.footer-widgets .wp-block-heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 2rem;
	height: 2px;
	background: var(--gold);
}
.footer-widgets a, .site-info a { color: var(--on-dark); text-decoration: none; }
.footer-widgets a:hover, .site-info a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 0.2em; }
.footer-widgets ul { list-style: none; margin: 0; padding: 0; }
.footer-widgets li { padding: 0; margin: 0; }
.footer-widgets .menu li a,
.footer-widgets .widget_nav_menu li a { display: inline-block; padding: 0.3rem 0; }

/* Brand column */
.hz-footer-brand {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0 0 0.75rem;
	font-family: var(--font-head);
	font-size: 1.4rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--white);
}
.hz-footer-brand::before {
	content: "";
	width: 0.85rem;
	height: 0.85rem;
	border-radius: 50%;
	border: 2px solid var(--gold);
	background: linear-gradient(to top, var(--gold) 50%, transparent 50%);
	flex: none;
}
.hz-footer-blurb { margin: 0; max-width: 24rem; color: var(--on-dark-soft); }

.site-info {
	background: #0e0c24;
	color: var(--on-dark-soft);
	font-size: 0.88rem;
	border-top: 1px solid rgba(245, 197, 66, 0.18);
}
.site-info .inside-site-info {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.4rem;
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
}
.site-info .copyright-bar { float: none; text-align: center; }
.hz-footer-note { max-width: 46rem; margin: 0; font-size: 0.82rem; line-height: 1.55; color: var(--on-dark-soft); }

@media (max-width: 800px) {
	.footer-widgets .inside-footer-widgets { grid-template-columns: 1fr 1fr; gap: 2rem; }
	.footer-widgets .inside-footer-widgets > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
	.footer-widgets .inside-footer-widgets { grid-template-columns: 1fr; }
}

/* Block-based widgets (Recent Posts, Comments, Search...) use plain headings; keep them tidy in sidebars */
.sidebar .widget h2,
.sidebar .widget .wp-block-heading,
.sidebar .wp-block-search__label {
	margin: 0 0 0.75rem;
	padding-bottom: 0.6rem;
	border-bottom: 2px solid var(--gold);
	font-size: 1.15rem;
}
.sidebar .widget ul.wp-block-latest-posts,
.sidebar .widget ol.wp-block-latest-comments { list-style: none; padding: 0; margin: 0; }
.sidebar .widget .wp-block-latest-comments__comment { margin-bottom: 0.6rem; font-size: 0.92rem; }

/* =========================================================
   12. Editor colour classes (match the block palette in functions.php)
   ========================================================= */
.has-ink-color { color: var(--ink); }
.has-violet-color { color: var(--violet); }
.has-gold-color { color: var(--gold); }
.has-midnight-color { color: var(--midnight); }
.has-paper-color { color: var(--paper); }
.has-mist-color { color: var(--mist); }
.has-ink-background-color { background-color: var(--ink); }
.has-violet-background-color { background-color: var(--violet); }
.has-gold-background-color { background-color: var(--gold); }
.has-midnight-background-color { background-color: var(--midnight); }
.has-dusk-background-color { background-color: var(--dusk); }
.has-paper-background-color { background-color: var(--paper); }
.has-mist-background-color { background-color: var(--mist); }

/* =========================================================
   13. Small screens and motion preferences
   ========================================================= */
@media (max-width: 600px) {
	body { font-size: 1rem; }
	.single .inside-article, .page .inside-article { border-radius: var(--radius-m); }
	.entry-content .hz-toc ol, .hz-toc ol { padding-left: 2.4rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .site-footer, .hz-hero, .sidebar, .comments-area { display: none !important; }
	body { background: #fff; }
}
