/**
 * Ghostline (c) 2026 ghostlinetheme.com. Proprietary, not licensed under the
 * GPL: see LICENSE.txt. Do not redistribute.
 */

/**
 * Ghostline global layout glue.
 * Everything visual lives in theme.json; this file only covers what it cannot.
 */

/* Full-width sections stack without gaps. */
.wp-site-blocks > * + *,
.wp-block-post-content > .alignfull,
.ghostline-main > .alignfull {
	margin-block-start: 0;
	margin-block-end: 0;
}

/* Sticky header on larger screens (the top bar scrolls away). */
@media (min-width: 782px) {

	.wp-site-blocks > header.wp-block-template-part {
		position: sticky;
		top: var(--wp-admin--admin-bar--height, 0);
		z-index: 50;
	}
}

/* Visible keyboard focus everywhere. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}

/* Header navigation: underline the current and hovered item. */
.ghostline-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content {
	padding-block: 6px;
	border-bottom: 2px solid transparent;
}

.ghostline-header .wp-block-navigation__responsive-container:not(.is-menu-open) .current-menu-item > .wp-block-navigation-item__content,
.ghostline-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content:hover {
	border-bottom-color: var(--wp--preset--color--accent);
}

/* Mobile overlay menu. */
.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--large);
}


/* Muted paragraphs inside dark sections. */
.is-style-ghostline-dark-band .has-contrast-2-color {
	color: var(--wp--preset--color--on-dark-2) !important;
}

@media (max-width: 781px) {

	.ghostline-header .ghostline-header-phone,
	.ghostline-header .ghostline-header-region {
		display: none;
	}
}

/* Header phone link. */
.ghostline-header-phone a {
	color: inherit;
	font-weight: 600;
	text-decoration: none;
}

/* Footer bottom row divider. */
.ghostline-footer-bottom {
	border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--on-dark) 12%, transparent);
}

.ghostline-footer-disclaimer {
	max-width: 760px;
}

/* Featured images follow the card/media radius of the active style. */
.wp-block-post-featured-image img,
.wp-block-post-featured-image a {
	border-radius: var(--wp--custom--radius--media);
}

/* Section titles keep a readable measure inside wide sections. */
.ghostline-section-title {
	max-width: var(--wp--style--global--content-size);
}

/* Alternating rows: media on the right on wide screens. */
@media (min-width: 782px) {

	.wp-block-columns.ghostline-alt-reverse {
		flex-direction: row-reverse;
	}
}

/* Package cards: price note and bottom-aligned button. */
.ghostline-price-card small {
	color: var(--wp--preset--color--contrast-2);
	font-size: 0.47em;
	font-weight: 500;
}

.ghostline-price-card > .wp-block-buttons {
	margin-top: auto;
}

.ghostline-price-card .wp-block-button,
.ghostline-price-card .wp-block-button__link {
	width: 100%;
}

.ghostline-price-list {
	padding-inline-start: 1.25em;
	font-size: var(--wp--preset--font-size--small);
}

/* Legal template notice. */
.ghostline-legal-note {
	box-sizing: border-box;
	padding: var(--wp--preset--spacing--30);
	border: 1px dashed currentcolor;
	border-radius: var(--wp--custom--radius--button);
}

/* Page hero title measure. */
.ghostline-page-title {
	max-width: 820px;
}

.ghostline-lead {
	max-width: 620px;
}

/* Long-form content (legal pages, posts): room above section headings. */
.wp-block-post-content > .wp-block-heading:not(:first-child) {
	margin-block-start: var(--wp--preset--spacing--60);
}

/* ---- Variation-driven details (tokens set in styles/*.json) ---- */

.ghostline-stat-number {
	font-weight: var(--wp--custom--stat--weight, 600);
	line-height: 1.05;
}

.ghostline-step-number {
	font-weight: var(--wp--custom--step--weight, 400);
}

.ghostline-price {
	font-weight: var(--wp--custom--price--weight, 700);
}

.wp-block-group.ghostline-price-card {
	border-top: var(--wp--custom--price--top-border, var(--wp--custom--card--border));
}

.wp-block-group.ghostline-price-card.has-border-color {
	border-width: var(--wp--custom--price--featured-border-width, 2px) !important;
	box-shadow: var(--wp--custom--price--featured-shadow, var(--wp--custom--card--shadow));
}

/* Page hero bottom rule (ink in Manuscript). */
.wp-block-group.ghostline-page-hero,
.wp-block-group.ghostline-home-hero {
	border-bottom: var(--wp--custom--hero--border, 1px solid var(--wp--preset--color--line));
}

/* Hero titles: emphasised words in the accent colour. */
.ghostline-hero-title em {
	color: var(--wp--preset--color--accent);
}

.wp-block-group.ghostline-person {
	flex-direction: var(--wp--custom--person--direction, row) !important;
	align-items: var(--wp--custom--person--align, flex-start) !important;
	text-align: var(--wp--custom--person--text-align, start);
}

.wp-block-group.ghostline-tile {
	text-align: var(--wp--custom--tile--align, start);
}

.wp-block-group.ghostline-tile > .is-style-ghostline-icon {
	margin-inline: var(--wp--custom--tile--icon-margin, 0) !important;
}

.ghostline-stars {
	display: var(--wp--custom--review--stars, block);
}

.wp-block-group.ghostline-review::before {
	content: var(--wp--custom--review--quote, none);
	display: block;
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--display);
	font-size: 4.5rem;
	line-height: 0.6;
	opacity: 0.55;
}

/* Sections that hold watermark letters. */
.ghostline-has-watermark {
	position: relative;
	overflow: hidden;
}

.ghostline-has-watermark > :not(.is-style-ghostline-watermark) {
	position: relative;
	z-index: 1;
}

/* Centered section titles keep their measure. */
.ghostline-section-title.has-text-align-center {
	margin-inline: auto;
}

/* Modern header. */
.ghostline-header-modern {
	box-shadow: 0 1px 0 var(--wp--preset--color--line);
}

.ghostline-brand-tag {
	font-size: 0.625rem;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

.ghostline-brand-badge img {
	border-radius: 50%;
}

.ghostline-btn-sm .wp-block-button__link {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
}

/* Light footer (Modern). */
.ghostline-footer-light {
	border-top: 1px solid var(--wp--preset--color--line);
}

.ghostline-footer-light .ghostline-footer-bottom {
	border-top-color: var(--wp--preset--color--line);
}

.ghostline-footer-light .wp-block-list.is-style-ghostline-plain a:hover,
.ghostline-footer-light .wp-block-list.is-style-ghostline-plain a:focus {
	color: var(--wp--preset--color--link-text);
}

@media (max-width: 781px) {

	.ghostline-header-utility {
		display: none !important;
	}
}

/* Modern home details. */
.ghostline-fan-note {
	max-width: 190px;
	margin-inline-start: auto;
	line-height: 1.35;
}

.ghostline-quote-mark {
	margin-bottom: 0;
	font-size: 4.5rem;
	line-height: 0.6;
	opacity: 0.55;
}

.ghostline-ready-title u {
	text-underline-offset: 8px;
}

.ghostline-platforms {
	opacity: 0.85;
}

.ghostline-platform-thin {
	font-weight: 300;
	letter-spacing: 0.08em;
}

.ghostline-footer h2.wp-block-heading {
	font-weight: 700;
}

/* Plain white header with a hairline (Manuscript). */
.ghostline-header-plain {
	border-bottom: 1px solid var(--wp--preset--color--line);
}
