/* =============================================================================
   Zehoro Toolkit — frontend styles
   CSS custom properties are injected dynamically via wp_add_inline_style()
   in Plugin::enqueue_assets(), so they always appear after this stylesheet
   and win the cascade. Edit colors in WP Admin → Site Toolkit → Visual Styles.
   ============================================================================= */

/* Static non-configurable tokens */
:root {
    --lkst-text-main:    #3D3730;
    --lkst-text-muted:   #8A8478;
    --lkst-border-light: rgba(15, 26, 46, 0.1);
}

/* =============================================================================
   News ticker  (.lkst-ticker)
   ============================================================================= */

@keyframes lkst-ticker {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

.lkst-ticker {
	
	padding: 13px 0;
	border-top: 1px solid rgba(245, 240, 232, 0.08);
	border-bottom: 1px solid rgba(245, 240, 232, 0.08);
	font-size:0.7em;
	overflow: hidden;
}

.lkst-ticker__wrap {
	display: flex;
	
	width: 100%;

	overflow: hidden;
}

.lkst-ticker__track {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	animation: lkst-ticker 60s linear infinite;
}

.lkst-ticker__items {
	display: flex;
	align-items: center;
	white-space: nowrap;
}

.lkst-ticker__wrap:hover .lkst-ticker__track {
	animation-play-state: paused;
}

/* Ticker separator diamond — uses primary brand color via CSS var */
.lkst-ticker__sep {
	color: var(--lkst-primary-color, #E8A020);
	padding: 0 14px;
	flex-shrink: 0;
}

/* Ticker post links — light color on the dark ticker strip */
.lkst-ticker__link {
	color: #F5F0E8;
	white-space: nowrap;
	text-decoration: none;
	flex-shrink: 0;
}

.lkst-ticker__link:hover {
	color: var(--lkst-primary-color, #E8A020);
}


/* =============================================================================
   Author social links row  (.lkst-author-socials)
   ============================================================================= */

.lkst-author-socials {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: var(--space-s, 1rem);
	padding-top: var(--space-s, 1rem);
	border-top: 1px solid var(--lkst-border-light);
}

.lkst-author-socials__label {
	font-size: var(--text-xs, 0.8rem);
	font-weight: 600;
	color: var(--lkst-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-right: 4px;
}

.lkst-author-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: var(--lkst-bg-dark);
	border-radius: 50%;
	color: #F5F0E8;
	text-decoration: none;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.lkst-author-social-link:hover {
	background: var(--lkst-primary-color);
	color: var(--lkst-primary-contrast);
}

.lkst-author-social-link .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	display: block;
	line-height: 1;
}


/* =============================================================================
   Post prev / next navigation  (.lkst-post-nav)
   ============================================================================= */

.lkst-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}

.lkst-post-nav__item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	text-decoration: none;
	max-width: 47%;
	color: var(--lkst-bg-dark);
	transition: color 0.2s ease;
}

.lkst-post-nav__item:hover {
	color: var(--lkst-primary-color);
	text-decoration: none;
}

.lkst-post-nav__next {
	text-align: right;
	margin-left: auto;
}

.lkst-post-nav__empty {
	flex: 0;
}

.lkst-post-nav__label {
	font-size: var(--text-xs, 0.8rem);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--lkst-text-muted);
}

.lkst-post-nav__title {
	font-size: var(--text-s, 0.95rem);
	font-weight: 600;
	line-height: 1.4;
}

@media (max-width: 560px) {
	.lkst-post-nav { flex-direction: column; gap: 12px; }
	.lkst-post-nav__item,
	.lkst-post-nav__next { max-width: 100%; text-align: left; margin-left: 0; }
}


/* =============================================================================
   Author box  (.lkst-author-box)
   ============================================================================= */

.lkst-author-box {
	background: var(--lkst-bg-light);
	border: 1px solid var(--lkst-border-light);
	border-radius: 12px;
	padding: 28px;
	margin-top: 0;
}

.lkst-ab-header {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 16px;
}

.lkst-ab-avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	flex-shrink: 0;
	object-fit: cover;
	border: 3px solid var(--lkst-primary-color);
}

.lkst-ab-identity {
	flex: 1;
	min-width: 0;
}

.lkst-ab-name {
	display: block;
	font-size: var(--text-m, 1.1rem);
	font-weight: 700;
	color: var(--lkst-bg-dark);
	line-height: 1.3;
	margin-bottom: 4px;
}

.lkst-ab-tagline {
	display: block;
	font-size: var(--text-xs, 0.8rem);
	color: var(--lkst-text-muted);
	font-weight: 500;
	letter-spacing: 0.02em;
}

.lkst-ab-bio {
	font-size: var(--text-s, 0.95rem);
	color: var(--lkst-text-main);
	line-height: 1.7;
	margin-bottom: 16px;
}

.lkst-ab-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.lkst-ab-chip {
	display: inline-block;
	background: var(--lkst-bg-dark);
	color: #F5F0E8;
	font-size: var(--text-xs, 0.8rem);
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 100px;
	letter-spacing: 0.02em;
}

.lkst-ab-ctas {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 20px;
}

.lkst-ab-btn-primary {
	display: inline-flex;
	align-items: center;
	background: var(--lkst-primary-color);
	color: var(--lkst-primary-contrast);
	font-weight: 700;
	font-size: var(--text-s, 0.95rem);
	padding: 10px 22px;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s ease;
}

.lkst-ab-btn-primary:hover {
	filter: brightness(0.9);
	color: var(--lkst-primary-contrast);
	text-decoration: none;
}

.lkst-ab-btn-secondary {
	display: inline-flex;
	align-items: center;
	background: transparent;
	color: var(--lkst-bg-dark);
	font-weight: 600;
	font-size: var(--text-s, 0.95rem);
	padding: 10px 22px;
	border-radius: 8px;
	border: 1px solid rgba(15, 26, 46, 0.25);
	text-decoration: none;
	transition: all 0.2s ease;
}

.lkst-ab-btn-secondary:hover {
	border-color: var(--lkst-secondary-color);
	color: var(--lkst-secondary-color);
	text-decoration: none;
}

.lkst-ab-socials {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 16px;
	border-top: 1px solid var(--lkst-border-light);
}

.lkst-ab-socials-label {
	font-size: var(--text-xs, 0.8rem);
	font-weight: 600;
	color: var(--lkst-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-right: 4px;
}

.lkst-ab-social {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: var(--lkst-bg-dark);
	border-radius: 50%;
	color: #F5F0E8;
	text-decoration: none;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.lkst-ab-social:hover {
	background: var(--lkst-primary-color);
	color: var(--lkst-primary-contrast);
	text-decoration: none;
}

.lkst-ab-social .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
	display: block;
	line-height: 1;
}


/* =============================================================================
   Table of Contents (Wirecutter Style)
   ============================================================================= */

.zehoro-toc-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #F5F0E8;
    border-top: 1px solid var(--lkst-border-light, rgba(15, 26, 46, 0.1));
    border-bottom: 1px solid var(--lkst-border-light, rgba(15, 26, 46, 0.1));
    border-radius: 0;
    margin-bottom: 2rem;
    font-family: inherit;
    width: 100%;
}



.zehoro-toc-header {
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #0F1A2E;
    cursor: pointer;
    max-width: 1200px;
    margin: 0 auto;
}

.zehoro-toc-title {
    font-size: 12px;
    font-weight: 400;
    padding-right: 16px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
    overflow: hidden;
}

.zehoro-toc-active-text-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
}

.zehoro-toc-active-text {
    display: inline-block;
    white-space: nowrap;
    color: #3D3730;
    font-size:15px;
}

.zehoro-toc-active-text.is-marquee {
    display: inline-flex;
    animation: lkst-marquee-anim 10s linear infinite;
}

@keyframes lkst-marquee-anim {
    0% { transform: translateX(0); }
    100% { transform: translateX(var(--scroll-dist)); }
}

.zehoro-toc-title strong {
    font-size: 12px !important;
    font-weight: 800;
    text-transform: uppercase;
}

.zehoro-toc-sep {
    margin: 0 8px;
    color: rgba(15, 26, 46, 0.3);
}

.zehoro-toc-active-text {
    color: #3D3730;
}

.zehoro-toc-toggle {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.zehoro-toc-wrapper.is-open .zehoro-toc-toggle {
    transform: rotate(180deg);
}

/* Dropdown body for ALL screen sizes */
.zehoro-toc-body {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    max-height: 60vh;
    overflow-y: auto;
    padding: 0;
    border-bottom: 1px solid rgba(15, 26, 46, 0.1);
}

.zehoro-toc-wrapper.is-open .zehoro-toc-body {
    display: block;
}

.zehoro-toc-list {
    list-style: none;
    margin: 0 auto;
    padding: 20px;
    max-width: 1200px;
}

.zehoro-toc-item {
    margin-bottom: 12px;
}

.zehoro-toc-item:last-child {
    margin-bottom: 0;
}

.zehoro-toc-depth-3 {
    padding-left: 20px;
    font-size: 0.9em;
}

.zehoro-toc-list a {
    color: #3D3730;
    text-decoration: none;
    transition: color 0.2s ease;
}

.zehoro-toc-list a:hover,
.zehoro-toc-list a.is-active {
    color: #E8A020;
    font-weight: 600;
}



/* Fix for container gap on mobile */
@media (max-width: 768px) {
    #brxe-dlyscy {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
}

/* =============================================================================
   Shared editorial block base  (.lkst-editorial-block)
   Used by AffiliateDisclosure, LastUpdated, FreshnessLog
   ============================================================================= */

.lkst-editorial-block {
	background: var(--lkst-bg-light, #F5F0E8);
	border-radius: 4px;
	margin-bottom: 2em;
	font-size: 13px;
	line-height: 1.5;
}


/* =============================================================================
   FAQ Accordion  (.lkst-faq-accordion)
   ============================================================================= */

.lkst-faq-accordion {
	margin-bottom: 1.5em;
	border: 1px solid var(--lkst-border-light, rgba(15, 26, 46, 0.1));
	border-radius: 6px;
	background-color: #fff;
}

.lkst-faq-accordion summary {
	font-weight: 600;
	font-size: 18px;
	cursor: pointer;
	padding: 16px 20px;
	list-style-position: inside;
	color: var(--lkst-primary-contrast, #0F1A2E);
	transition: background 0.15s ease;
}

.lkst-faq-accordion summary:hover {
	background: var(--lkst-bg-light, #F5F0E8);
	border-radius: 6px 6px 0 0;
}

.lkst-faq-accordion[open] summary {
	border-bottom: 1px solid var(--lkst-border-light, rgba(15, 26, 46, 0.1));
	border-radius: 6px 6px 0 0;
}

.lkst-faq-answer {
	padding: 0 20px 20px;
	line-height: 1.6;
	color: var(--lkst-text-main, #3D3730);
}
