/*!
Theme Name: Kadence Broadsheet
Theme URI: https://www.kadencewp.com/
Template: kadence
Author: Massive Dynamic
Description: A Kadence child theme in the style of a modern American broadsheet's section front: centred masthead, big bold sans section titles with a sub-section nav, high-contrast serif headlines over a Franklin-style sans, hairline rules, five-across story strips and a date-gutter story list.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v3.0 (or later)
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kadence-broadsheet
*/

/* -------------------------------------------------------------------------
   0. Tokens (mapped from Kadence's --global-palette1..9)
   ------------------------------------------------------------------------- */
:root {
	--bs-accent:      var(--global-palette1, #166bff);
	--bs-accent-dark: var(--global-palette2, #0f4fc2);
	--bs-ink:         var(--global-palette3, #111111);
	--bs-ink-2:       var(--global-palette4, #2a2a2a);
	--bs-ink-3:       var(--global-palette5, #4d4d4d);
	--bs-muted:       var(--global-palette6, #6b6b6b);
	--bs-rule:        var(--global-palette7, #d5d5d5);
	--bs-wash:        var(--global-palette8, #f7f7f7);
	--bs-paper:       var(--global-palette9, #ffffff);
	--bs-sans:        var(--global-body-font-family, "Libre Franklin", "Helvetica Neue", Arial, sans-serif);
	--bs-serif:       var(--global-heading-font-family, "Playfair Display", Georgia, "Times New Roman", serif);
	--bs-gap:         1.25rem;
	--bs-rule-w:      1px;
}

/* -------------------------------------------------------------------------
   1. Base
   ------------------------------------------------------------------------- */
body {
	font-family: var(--bs-sans);
	-webkit-font-smoothing: antialiased;
	color: var(--bs-ink-2);
	background: var(--bs-paper);
}
h1, h2, h3, h4, h5, h6 { color: var(--bs-ink); }
h1, h2, h3 { font-family: var(--bs-serif); letter-spacing: -0.005em; }
h4, h5, h6 { font-family: var(--bs-sans); }
a { text-decoration: none; }
.entry-content p a:not(.wp-block-button__link):not(.wp-element-button),
.entry-content li a:not(.wp-block-button__link):not(.wp-element-button) {
	color: var(--bs-ink);
	text-decoration: underline;
	text-underline-offset: 0.15em;
	text-decoration-thickness: 1px;
}
.entry-content p a:not(.wp-block-button__link):not(.wp-element-button):hover { color: var(--bs-accent); }
.entry-content .bs-feed a,
.entry-content .bs-feed li a,
.entry-content .bs-section-head a,
.entry-content .bs-subnav a { text-decoration: none !important; }

/* Small grey meta text (dates, bylines) */
.bs-meta,
.loop-entry .entry-meta,
.wp-block-post-date,
.single-entry .entry-meta {
	font-family: var(--bs-sans);
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--bs-muted);
	line-height: 1.3;
}
/* Kicker / label */
.bs-kicker,
.wp-block-post-terms a,
.entry-taxonomies .category-links a {
	font-family: var(--bs-sans);
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--bs-ink);
}
.wp-block-post-terms a:hover, .entry-taxonomies .category-links a:hover { color: var(--bs-accent); }

/* -------------------------------------------------------------------------
   2. Header – centred masthead, icons left, pill button right, nav below
   ------------------------------------------------------------------------- */
#masthead .site-header-row-container-inner { background: var(--bs-paper); }
.site-main-header-wrap .site-header-row-container-inner { border-bottom: 0; }
.site-bottom-header-wrap .site-header-row-container-inner { border-bottom: var(--bs-rule-w) solid var(--bs-rule); }

/* Masthead wordmark when no image logo is set: blackletter-ish serif */
.site-branding { text-align: center; }
.site-branding .site-title {
	font-family: var(--bs-serif);
	font-weight: 900;
	font-size: 2rem;
	letter-spacing: -0.02em;
	line-height: 1;
	margin: 0;
}
.site-branding .site-title a { color: var(--bs-ink); }
.site-branding .site-description {
	display: block;
	font-family: var(--bs-serif);
	font-style: italic;
	font-size: 0.75rem;
	color: var(--bs-ink-3);
	margin: 0.25rem 0 0;
}

/* Search icon */
.search-toggle-open-container .search-toggle-open { color: var(--bs-ink); }
.search-toggle-open-container .search-toggle-open:hover { color: var(--bs-accent); }

/* Subscribe pill + Sign in */
.header-button {
	border-radius: 999px !important;
	font-weight: 700;
	box-shadow: none !important;
	padding-left: 1.25em;
	padding-right: 1.25em;
}
.header-html .bs-signin {
	font-weight: 700;
	font-size: 0.9375rem;
	color: var(--bs-ink);
	margin-left: 0.75rem;
}
.header-html .bs-signin:hover { color: var(--bs-accent); }

/* Section nav: quiet, medium weight, underline on hover/active */
.header-navigation .primary-menu-container > ul > li > a {
	font-family: var(--bs-sans);
	font-weight: 500;
	font-size: 0.9375rem;
	color: var(--bs-ink);
	position: relative;
}
.header-navigation .primary-menu-container > ul > li > a::after {
	content: "";
	position: absolute;
	left: var(--global-primary-nav-spacing, 1.1em);
	right: var(--global-primary-nav-spacing, 1.1em);
	bottom: 0;
	height: 2px;
	background: var(--bs-ink);
	transform: scaleX(0);
	transition: transform 0.15s ease;
}
.header-navigation .primary-menu-container > ul > li > a:hover::after,
.header-navigation .primary-menu-container > ul > li.current-menu-item > a::after,
.header-navigation .primary-menu-container > ul > li.current-menu-ancestor > a::after { transform: scaleX(1); }
.header-navigation ul ul.sub-menu { box-shadow: 0 8px 24px rgba(0,0,0,0.08); border: var(--bs-rule-w) solid var(--bs-rule); }
.header-navigation ul ul.sub-menu li a { font-size: 0.875rem; font-weight: 500; }

/* Sticky: hairline only */
#masthead .item-is-fixed .site-header-row-container-inner,
#masthead .item-is-stuck .site-header-row-container-inner { box-shadow: none !important; border-bottom: var(--bs-rule-w) solid var(--bs-rule); }

/* -------------------------------------------------------------------------
   3. Archive / category pages – big sans title, sub-nav, 4-up serif cards
   ------------------------------------------------------------------------- */
.archive .content-title-style-normal .archive-title,
.blog .content-title-style-normal .archive-title,
.search .content-title-style-normal .archive-title {
	font-family: var(--bs-sans);
	font-weight: 800;
	font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem);
	letter-spacing: -0.03em;
	line-height: 1;
	margin: 0.5rem 0 0.75rem;
	border: 0;
	display: block;
}
.archive .archive-description { color: var(--bs-ink-3); font-size: 0.9375rem; max-width: 70ch; }
.content-area .kadence-breadcrumbs { display: none; }

/* Sub-section nav rendered under the archive title (see functions.php) */
.bs-subnav {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.5rem;
	padding: 0.75rem 0;
	margin: 0 0 1.5rem;
	border-bottom: var(--bs-rule-w) solid var(--bs-rule);
	font-size: 0.9375rem;
	font-weight: 500;
	list-style: none;
}
.bs-subnav a { color: var(--bs-ink); }
.bs-subnav a:hover, .bs-subnav .current a { color: var(--bs-accent); }

.content-area .loop-entry, .content-area .loop-entry.content-bg { background: transparent; box-shadow: none; border: 0; border-radius: 0; }
.content-area .loop-entry .post-thumbnail, .content-area .loop-entry .post-thumbnail img { border-radius: 0; }
.content-area .loop-entry .entry-content-wrap { padding: 0.75rem 0 1.5rem; }
.content-area .loop-entry .entry-header { margin-bottom: 0.25rem; }
.content-area .loop-entry .entry-title {
	font-family: var(--bs-serif);
	font-size: 1.25rem;
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 0.4rem;
}
.content-area .loop-entry .entry-title a { color: var(--bs-ink); }
.content-area .loop-entry .entry-title a:hover { color: var(--bs-accent); }
.content-area .loop-entry .entry-summary { font-size: 0.9375rem; color: var(--bs-ink-3); line-height: 1.45; }
.content-area .loop-entry .entry-footer { display: none; }
.content-area .loop-entry .entry-meta a { color: inherit; }
.content-area .posts-grid { gap: 0 var(--bs-gap); }
.content-area .posts-grid .entry-list-item { margin-bottom: 0.5rem; }

/* Pagination */
.content-area .pagination .page-numbers { border-radius: 999px; border: var(--bs-rule-w) solid var(--bs-rule); color: var(--bs-ink); font-weight: 600; }
.content-area .pagination .page-numbers.current { background: var(--bs-ink); border-color: var(--bs-ink); color: var(--bs-paper); }

/* -------------------------------------------------------------------------
   4. Single post
   ------------------------------------------------------------------------- */
.single-entry.content-bg, .single .content-area .single-entry { background: transparent; box-shadow: none; border-radius: 0; }
.single .entry-header .entry-taxonomies { margin-bottom: 0.75rem; }
.single .entry-header .entry-title {
	font-family: var(--bs-serif);
	font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem);
	line-height: 1.1;
	font-weight: 700;
	letter-spacing: -0.01em;
	max-width: 26ch;
}
.single .entry-header .entry-summary { font-size: 1.1875rem; line-height: 1.45; color: var(--bs-ink-3); max-width: 60ch; font-weight: 400; }
.single .entry-header .entry-meta { margin-top: 1rem; padding-top: 0.75rem; border-top: var(--bs-rule-w) solid var(--bs-rule); font-size: 0.8125rem; }
.single .entry-header .entry-meta .author a { color: var(--bs-ink); font-weight: 700; }
.single .entry-content { font-family: Georgia, "Times New Roman", serif; font-size: 1.1875rem; line-height: 1.65; }
.single .entry-content h2, .single .entry-content h3 { font-family: var(--bs-sans); letter-spacing: -0.01em; }
.single .entry-content h2 { font-size: 1.5rem; margin-top: 2em; }
.single .entry-content blockquote {
	border-left: 0;
	padding: 0 2rem;
	font-family: var(--bs-serif);
	font-size: 1.5rem;
	line-height: 1.3;
	color: var(--bs-ink);
	text-align: center;
}
.single .entry-content figure figcaption, .single .article-post-thumbnail-caption {
	font-family: var(--bs-sans);
	font-size: 0.8125rem;
	color: var(--bs-muted);
	text-align: left;
	background: transparent;
	padding: 0.5rem 0 0;
}
.single .post-thumbnail img, .single .entry-content img { border-radius: 0; }
.single .entry-tags { border-top: var(--bs-rule-w) solid var(--bs-rule); padding-top: 1rem; }
.single .entry-tags a { border-radius: 999px; border: var(--bs-rule-w) solid var(--bs-rule); background: transparent; font-size: 0.75rem; font-weight: 600; color: var(--bs-ink-3); }
.single .entry-related { border-top: var(--bs-rule-w) solid var(--bs-rule); }
.single .entry-related .entry-related-title { font-family: var(--bs-sans); font-size: 1rem; font-weight: 700; }
.single .post-navigation { border-top: var(--bs-rule-w) solid var(--bs-rule); }

/* -------------------------------------------------------------------------
   5. Sidebar & footer
   ------------------------------------------------------------------------- */
.primary-sidebar .widget { border-top: var(--bs-rule-w) solid var(--bs-ink); padding-top: 0.75rem; margin-bottom: 2rem; }
.primary-sidebar .widget-title, .primary-sidebar .wp-block-heading { font-family: var(--bs-sans); font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }
.primary-sidebar ul { list-style: none; padding: 0; margin: 0; }
.primary-sidebar li { border-bottom: var(--bs-rule-w) solid var(--bs-rule); padding: 0.6rem 0; font-family: var(--bs-serif); font-size: 1.0625rem; font-weight: 700; line-height: 1.25; }
.primary-sidebar li a { color: var(--bs-ink); }
.primary-sidebar li a:hover { color: var(--bs-accent); }

#colophon { border-top: var(--bs-rule-w) solid var(--bs-ink); }
#colophon .site-footer-row-container-inner { background: var(--bs-paper); }
#colophon .site-middle-footer-wrap .site-footer-row-container-inner { border-bottom: var(--bs-rule-w) solid var(--bs-rule); }
#colophon .widget-title, #colophon .wp-block-heading { font-family: var(--bs-sans); font-size: 0.8125rem; font-weight: 700; color: var(--bs-ink); margin-bottom: 0.75rem; }
#colophon .widget, #colophon .footer-widget-area, #colophon .footer-navigation a { font-size: 0.8125rem; color: var(--bs-ink-3); }
#colophon ul { list-style: none; padding: 0; margin: 0; }
#colophon a { color: var(--bs-ink-3); }
#colophon a:hover { color: var(--bs-accent); }
#colophon .footer-html { font-size: 0.75rem; color: var(--bs-muted); }
#colophon .social-button { border-radius: 999px; }

/* -------------------------------------------------------------------------
   6. Buttons & forms
   ------------------------------------------------------------------------- */
.button, .wp-block-button__link, .wp-element-button, button, input[type="submit"] { border-radius: 999px; font-weight: 700; box-shadow: none; }
input[type="text"], input[type="email"], input[type="search"], input[type="url"], textarea, select { border-radius: 4px; border: var(--bs-rule-w) solid var(--bs-ink-3); }
input:focus, textarea:focus, select:focus { border-color: var(--bs-accent); outline: none; box-shadow: 0 0 0 3px rgba(22,107,255,0.15); }

/* -------------------------------------------------------------------------
   7. Section-front pattern helpers (patterns/section-front.php)
   ------------------------------------------------------------------------- */
.bs-front { padding-top: 1rem; }

/* Big section title + sub-nav */
.bs-title.wp-block-heading {
	font-family: var(--bs-sans) !important;
	font-weight: 800 !important;
	font-size: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem) !important;
	letter-spacing: -0.03em;
	line-height: 1;
	margin: 0 0 0.75rem !important;
}
.bs-subnav.wp-block-navigation,
.bs-subnav .wp-block-navigation__container { gap: 0 1.5rem; }
.bs-subnav.wp-block-navigation { padding: 0.75rem 0; margin-bottom: 1.5rem !important; border-bottom: var(--bs-rule-w) solid var(--bs-rule); font-size: 0.9375rem; font-weight: 500; }
.bs-subnav .wp-block-navigation-item__content { color: var(--bs-ink); }
.bs-subnav .wp-block-navigation-item__content:hover { color: var(--bs-accent); text-decoration: none; }

/* Section head with rule above and chevron */
.bs-section-head.wp-block-heading {
	font-family: var(--bs-sans) !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em;
	border-top: var(--bs-rule-w) solid var(--bs-ink);
	padding-top: 0.75rem;
	margin: 2rem 0 1rem !important;
}
.bs-section-head a { color: var(--bs-ink); }
.bs-section-head a::after { content: " \203A"; font-weight: 400; color: var(--bs-ink-3); }
.bs-section-head a:hover { color: var(--bs-accent); }

/* Columns with a hairline between lead and rail */
.bs-cols.wp-block-columns { gap: 0 var(--bs-gap); }
@media (min-width: 782px) {
	.bs-cols.wp-block-columns > .wp-block-column.bs-rail { border-left: var(--bs-rule-w) solid var(--bs-rule); padding-left: var(--bs-gap); }
}

/* Feeds ---------------------------------------------------------------- */
.bs-feed .wp-block-post { border-bottom: var(--bs-rule-w) solid var(--bs-rule); padding-bottom: 1rem; margin-bottom: 1rem; }
.bs-feed .wp-block-post:last-child { border-bottom: 0; }
.bs-feed .wp-block-post-featured-image { margin-bottom: 0.6rem; }
.bs-feed .wp-block-post-featured-image img { border-radius: 0; }
.bs-feed .wp-block-post-terms { margin-bottom: 0.25rem; display: block; }
.bs-feed .wp-block-post-terms .wp-block-post-terms__separator { color: var(--bs-rule); margin: 0 0.35em; }
.bs-feed .wp-block-post-title {
	font-family: var(--bs-serif);
	font-size: 1.25rem;
	line-height: 1.2;
	font-weight: 700;
	margin: 0 0 0.35rem;
}
.bs-feed .wp-block-post-title a { color: var(--bs-ink); }
.bs-feed .wp-block-post-title a:hover { color: var(--bs-accent); }
.bs-feed .wp-block-post-excerpt { font-size: 0.9375rem; line-height: 1.45; color: var(--bs-ink-3); }
.bs-feed .wp-block-post-excerpt__excerpt { margin-bottom: 0; }
.bs-feed .wp-block-post-excerpt__more-text { display: none; }
.bs-feed .wp-block-post-date { display: block; margin-top: 0.35rem; }
.bs-feed .wp-block-post-date a { color: inherit; }

/* Lead: text column (headline + dek, no image) */
.bs-lead-text .wp-block-post { border-bottom: 0; }
.bs-lead-text .wp-block-post-title { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 1.875rem); line-height: 1.15; }
.bs-lead-text .wp-block-post-excerpt { font-size: 1rem; }
/* Lead: photo column (image only, with caption-style date) */
.bs-lead-photo .wp-block-post { border-bottom: 0; }
.bs-lead-photo .wp-block-post-featured-image { margin-bottom: 0.35rem; }
.bs-lead-photo .wp-block-post-title { display: none; }

/* Rail: image + serif headline + date, hairlines between */
.bs-rail-feed .wp-block-post-title { font-size: 1.125rem; }

/* Five-across strip (grid layout, hairline-free, serif heads) */
.bs-strip .wp-block-post-template { gap: var(--bs-gap) !important; }
.bs-strip .wp-block-post { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.bs-strip .wp-block-post-title { font-size: 1.125rem; }
@media (max-width: 1024px) { .bs-strip .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 600px) { .bs-strip .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, 1fr) !important; } }

/* "More Stories": date gutter | headline + dek | image */
.bs-list .wp-block-post {
	display: grid;
	grid-template-columns: 7rem 1fr 15rem;
	grid-template-areas: "date title img" "date excerpt img";
	gap: 0.25rem 1.5rem;
	align-items: start;
	padding: 1rem 0;
	margin: 0;
}
.bs-list .wp-block-post-date { grid-area: date; margin: 0.3rem 0 0; }
.bs-list .wp-block-post-title { grid-area: title; font-size: 1.5rem; line-height: 1.15; margin: 0; }
.bs-list .wp-block-post-excerpt { grid-area: excerpt; }
.bs-list .wp-block-post-featured-image { grid-area: img; margin: 0; }
@media (max-width: 781px) {
	.bs-list .wp-block-post { grid-template-columns: 1fr 7rem; grid-template-areas: "title img" "excerpt img" "date img"; }
	.bs-list .wp-block-post-title { font-size: 1.25rem; }
}

/* Newsletter promo box (core Group with this class) */
.bs-promo.wp-block-group {
	border: var(--bs-rule-w) solid var(--bs-rule);
	padding: 1.25rem;
	text-align: center;
}
.bs-promo .bs-kicker { display: inline-block; border: var(--bs-rule-w) solid var(--bs-ink); padding: 0.15em 0.6em; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.75rem; }
.bs-promo h3 { font-family: var(--bs-sans); font-size: 1.125rem; font-weight: 700; margin: 0.5rem 0; }
.bs-promo p { font-size: 0.875rem; color: var(--bs-ink-3); }

/* Breaking strip (functions.php, kadence_before_header) */
.bs-breaking { background: var(--bs-ink); color: var(--bs-paper); font-size: 0.875rem; line-height: 1.3; }
.bs-breaking-inner { display: flex; align-items: center; gap: 0.75rem; padding-top: 0.45rem; padding-bottom: 0.45rem; min-width: 0; }
.bs-breaking-label { background: var(--bs-accent); color: #fff; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2em 0.5em; border-radius: 999px; flex: none; }
.bs-breaking-link { color: var(--bs-paper); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.bs-breaking-link:hover { color: var(--bs-accent); }
.bs-breaking-time { margin-left: auto; flex: none; font-size: 0.75rem; color: rgba(255,255,255,0.65); }
@media (max-width: 781px) { .bs-breaking-time { display: none; } }

/* Separator helper */
.wp-block-separator.bs-rule { border: 0; border-top: var(--bs-rule-w) solid var(--bs-rule); margin: 1.25rem 0; opacity: 1; width: 100% !important; max-width: none !important; }
.wp-block-separator.bs-rule-heavy { border-top-color: var(--bs-ink); }
