/*
Theme Name: Info Focus
Author: the Info Focus team
Description: A modern and accessible WordPress theme with a focus on usability and clean design.
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.2
Version: 1.2.7
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/* @link https://utopia.fyi/type/calculator?c=320,16,1.2,1200,18,1.2,5,0,&s=0.75|0.5|0.25,1.5|2|3|4|6,s-l&g=s,l,xl,12 */

:root {
  --font-size-0: clamp(1rem, 0.9545rem + 0.2273vw, 1.125rem);
  --font-size-1: clamp(1.2rem, 1.1455rem + 0.2727vw, 1.35rem);
  --font-size-2: clamp(1.44rem, 1.3745rem + 0.3273vw, 1.62rem);
  --font-size-3: clamp(1.728rem, 1.6495rem + 0.3927vw, 1.944rem);
  --font-size-4: clamp(2.0736rem, 1.9793rem + 0.4713vw, 2.3328rem);
  --font-size-5: clamp(2.4883rem, 2.3752rem + 0.5655vw, 2.7994rem);
}

h1,h2,h3,h4,h5,h6 {
	font-weight: 700;
	line-height: 1.15;
	margin-bottom: 24px;
}

.single-post .avatar {
	border-radius: 50%;
}

/* Single post editorial typography inspired by Tailwind Typography. */
.single-post .single-article-shell {
	padding-bottom: 2.25rem !important;
	padding-left: clamp(1rem, 3vw, 1.75rem) !important;
	padding-right: clamp(1rem, 3vw, 1.75rem) !important;
	padding-top: clamp(0.4rem, 1vw, 0.8rem) !important;
}

.single-post .single-article-shell > .wp-block-post-title {
	font-size: clamp(2rem, 4.8vw, 3.25rem);
	letter-spacing: -0.02em;
	line-height: 1.08;
	margin-bottom: 1rem;
	text-wrap: balance;
}

.single-post .single-article-shell > .wp-block-post-excerpt {
	color: #475569;
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	line-height: 1.65;
	margin-bottom: 1.1rem;
}

.single-post .single-article-meta {
	align-items: center;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	gap: 0.75rem;
	margin-bottom: 1.8rem;
	padding-bottom: 1rem;
}

.single-post .single-article-meta .wp-block-post-author {
	align-items: center;
	display: inline-flex;
	gap: 0.6rem;
}

.single-post .single-article-meta .wp-block-post-author__avatar img,
.single-post .single-article-meta .avatar {
	border-radius: 9999px;
	height: 2.2rem;
	object-fit: cover;
	width: 2.2rem;
}

.single-post .single-article-meta .wp-block-post-author__name {
	color: #0f172a;
	font-size: 0.93rem;
	font-weight: 600;
}

.single-post .single-article-prose {
	color: #1e293b;
	font-size: clamp(1rem, 0.98rem + 0.2vw, 1.12rem);
	line-height: 1.8;
}

.single-post .single-article-prose > *:first-child {
	margin-top: 0;
}

.single-post .single-article-prose > *:last-child {
	margin-bottom: 0;
}

.single-post .single-article-prose p,
.single-post .single-article-prose ul,
.single-post .single-article-prose ol,
.single-post .single-article-prose blockquote,
.single-post .single-article-prose pre,
.single-post .single-article-prose table,
.single-post .single-article-prose figure {
	margin-bottom: 1.35em;
	margin-top: 1.35em;
}

.single-post .single-article-prose h2,
.single-post .single-article-prose h3,
.single-post .single-article-prose h4,
.single-post .single-article-prose h5,
.single-post .single-article-prose h6 {
	color: #020617;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
	margin-bottom: 0.7em;
	margin-top: 1.55em;
	text-wrap: pretty;
}

.single-post .single-article-prose h2 {
	font-size: clamp(1.55rem, 2.8vw, 2rem);
}

.single-post .single-article-prose h3 {
	font-size: clamp(1.3rem, 2.1vw, 1.65rem);
}

.single-post .single-article-prose h4 {
	font-size: clamp(1.14rem, 1.6vw, 1.35rem);
}

.single-post .single-article-prose a {
	color: #0f766e;
	font-weight: 500;
	text-decoration-color: color-mix(in srgb, #0f766e 45%, transparent);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.17em;
	transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.single-post .single-article-prose a:hover,
.single-post .single-article-prose a:focus-visible {
	color: #115e59;
	text-decoration-color: #115e59;
}

.single-post .single-article-prose strong {
	color: #0f172a;
	font-weight: 700;
}

.single-post .single-article-prose ul,
.single-post .single-article-prose ol {
	padding-left: 1.4em;
}

.single-post .single-article-prose li {
	margin-bottom: 0.55em;
	padding-left: 0.15em;
}

.single-post .single-article-prose li::marker {
	color: #0f766e;
	font-weight: 600;
}

.single-post .single-article-prose blockquote {
	border-left: 3px solid #0f766e;
	color: #334155;
	font-size: 1.04em;
	font-style: italic;
	margin-left: 0;
	padding-left: 1em;
}

.single-post .single-article-prose code {
	background-color: #f1f5f9;
	border-radius: 0.3rem;
	color: #0f172a;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 0.88em;
	padding: 0.15em 0.35em;
}

.single-post .single-article-prose pre {
	background-color: #0f172a;
	color: #e2e8f0;
	overflow-x: auto;
	padding: 1em 1.1em;
}

.single-post .single-article-prose pre code {
	background: transparent;
	color: inherit;
	padding: 0;
}

.single-post .single-article-prose table {
	border-collapse: collapse;
	font-size: 0.95em;
	width: 100%;
}

.single-post .single-article-prose th,
.single-post .single-article-prose td {
	border-bottom: 1px solid #e2e8f0;
	padding: 0.65em 0.55em;
	text-align: left;
}

.single-post .single-article-prose th {
	color: #0f172a;
	font-weight: 700;
}

.single-post .single-article-prose figcaption,
.single-post .single-article-prose .wp-element-caption {
	color: #64748b;
	font-size: 0.88em;
	line-height: 1.5;
	margin-top: 0.55em;
	text-align: center;
}

.single-post .single-article-prose .wp-block-image,
.single-post .single-article-prose .wp-block-video,
.single-post .single-article-prose .wp-block-cover {
	margin-left: 0;
	margin-right: 0;
}

@media (max-width: 781px) {
	.single-post .single-article-meta {
		margin-bottom: 1.35rem;
	}

	.single-post .single-article-prose {
		line-height: 1.72;
	}

	.single-post .single-article-prose p,
	.single-post .single-article-prose ul,
	.single-post .single-article-prose ol,
	.single-post .single-article-prose blockquote,
	.single-post .single-article-prose pre,
	.single-post .single-article-prose table,
	.single-post .single-article-prose figure {
		margin-bottom: 1.1em;
		margin-top: 1.1em;
	}
}


/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

.max-w-prose {
	max-width: 80ch;
}

img {
	max-width: 100%;
}

.mx-auto {
	margin-left: auto;
	margin-right: auto;
}


.homepage-category-header {
	font-size: clamp(20px, 2vw, 25px);
	font-style: normal;
	font-weight: 700;
	text-decoration: underline;
}

.homepage-hero-section {
	background: transparent;
	border: none;
	border-radius: 0;
	padding: 0 !important;
	width: 100%;
	box-sizing: border-box;
}

.homepage-hero-columns {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

.homepage-hero-columns > .wp-block-column {
	display: flex;
}

.homepage-trending-panel,
.homepage-topstories-panel {
	background: #ffffff;
	height: 100%;
	padding: 10px;
}

.homepage-trending-panel .homepage-category-header,
.homepage-topstories-panel .homepage-category-header {
	text-decoration-color: #f59e0b;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	margin-bottom: 6px;
}

.homepage-trending-lead-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
}

.placeholder-featured-image {
	background: #cbd5e1;
	display: block;
	height: auto;
	max-width: 100%;
	object-fit: cover;
	width: 100%;
}

.homepage-trending-panel .wp-block-post-featured-image:empty {
	background: linear-gradient(120deg, #cbd5e1 0%, #94a3b8 100%);
	border-radius: 14px;
	display: block;
	min-height: 280px;
	position: relative;
}

.homepage-trending-panel .wp-block-post-featured-image:empty::after {
	color: #ffffff;
	content: "Add a featured image for the lead story";
	font-size: 13px;
	font-weight: 600;
	left: 16px;
	letter-spacing: 0.02em;
	position: absolute;
	top: 14px;
}

.homepage-trending-panel .is-not-stacked-on-mobile {
	align-items: flex-start;
}

.homepage-trending-panel .is-not-stacked-on-mobile .wp-block-post-title {
	font-size: clamp(14px, 1.1vw, 16px) !important;
}

.homepage-topstories-panel .is-not-stacked-on-mobile .wp-block-post-title {
	line-height: 1.2;
}

.homepage-trending-panel .wp-block-post-template.is-layout-grid {
	column-gap: 14px;
	position: relative;
	row-gap: 10px;
}

.homepage-trending-panel .wp-block-post-template.is-layout-grid::before {
	background: #e5e7eb;
	bottom: 0;
	content: "";
	left: 50%;
	position: absolute;
	top: 0;
	width: 1px;
}

.homepage-trending-panel .homepage-trending-mini-item {
	margin-bottom: 0;
}

.homepage-trending-panel .wp-block-post-template.is-layout-grid > .homepage-trending-mini-item {
	padding-bottom: 10px !important;
	padding-top: 10px !important;
}

.homepage-trending-panel .wp-block-post-template.is-layout-grid > .homepage-trending-mini-item:nth-child(odd) {
	padding-right: 12px !important;
}

.homepage-trending-panel .wp-block-post-template.is-layout-grid > .homepage-trending-mini-item:nth-child(even) {
	padding-left: 12px !important;
}

.homepage-topstories-panel .wp-block-separator,
.homepage-trending-panel .wp-block-separator {
	opacity: 0.2;
}

@media (max-width: 781px) {
	.homepage-hero-section {
		padding: 0 !important;
		border-radius: 16px;
	}

	.homepage-trending-panel,
	.homepage-topstories-panel {
		padding: 10px;
	}

	.homepage-trending-panel .wp-block-post-template.is-layout-grid {
		grid-template-columns: 1fr;
	}

	.homepage-trending-panel .wp-block-post-template.is-layout-grid::before {
		display: none;
	}

	.homepage-trending-panel .wp-block-post-template.is-layout-grid > .homepage-trending-mini-item {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.homepage-trending-lead-image img {
		max-height: 280px;
	}
}

.justify-content-center {
	justify-content: center;
}

.flex {
	display: flex;
}

.gap-4 {
	gap: 16px;
}
.flex-nowrap {
	flex-wrap: nowrap;
}



.no-break {
	white-space: nowrap;
}

.overflow-x-auto {
	overflow-x: auto;
}

.wp-block-categories-list a {
	text-decoration: none;
}

.wp-block-categories-list {
	list-style: none;
}

.categories-scroll-shell {
	max-width: 100% !important;
	position: relative;
	width: 100%;
}

.categories-scroll-shell.is-layout-flow > * {
	margin-block-end: 0;
	margin-block-start: 0;
}

.categories-header {
	-ms-overflow-style: none;
	align-items: center;
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	border-bottom: 1px solid #e5e7eb;
	border-top: 1px solid #e5e7eb;
	display: flex;
	flex-wrap: nowrap !important;
	gap: 10px;
	justify-content: flex-start;
	list-style: none;
	margin: 0 !important;
	overflow-x: auto !important;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	padding: 10px clamp(12px, 2vw, 26px) !important;
	scroll-padding-inline: 12px;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	white-space: nowrap;
	width: 100%;
}

.wp-block-categories.categories-header {
	max-width: 100% !important;
}

.categories-scroll-shell::before,
.categories-scroll-shell::after {
	bottom: 0;
	content: "";
	pointer-events: none;
	position: absolute;
	top: 0;
	transition: opacity 0.2s ease;
	width: 42px;
	z-index: 3;
}

.categories-scroll-shell::before {
	background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
	left: 0;
}

.categories-scroll-shell::after {
	background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
	right: 0;
}

.categories-scroll-arrow {
	align-items: center;
	appearance: none;
	background: #ffffff;
	border: 1px solid #dbe3ed;
	border-radius: 9999px;
	color: #0f172a;
	cursor: pointer;
	display: inline-flex;
	font-size: 1.35rem;
	height: 30px;
	justify-content: center;
	line-height: 1;
	opacity: 1;
	padding: 0;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
	width: 30px;
	z-index: 4;
}

.categories-scroll-shell > .categories-scroll-arrow {
	margin-block-start: 0 !important;
}

.categories-scroll-arrow span {
	display: block;
	line-height: 1;
	transform: translateY(-1px);
}

.categories-scroll-arrow--left {
	left: 6px;
}

.categories-scroll-arrow--right {
	right: 6px;
}

.categories-scroll-arrow--right span {
	transform: translate(1px, -1px);
}

.categories-scroll-arrow:hover {
	background: #f8fafc;
	border-color: #c6d3e2;
}

.categories-scroll-arrow:focus-visible {
	border-color: #0f766e;
	outline: 2px solid #0f766e;
	outline-offset: 1px;
}

.categories-scroll-arrow.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.categories-scroll-shell.is-at-start::before,
.categories-scroll-shell.is-at-end::after {
	opacity: 0;
}

.categories-header::-webkit-scrollbar {
	display: none;
}

.categories-header li {
	display: inline-flex;
	flex: 0 0 auto;
	scroll-snap-align: start;
}

.categories-header li a {
	background-color: #ffffff;
	border: 1px solid #dbe3ed;
	border-radius: 9999px;
	color: #1e293b;
	display: inline-flex;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1;
	padding: 0.62rem 0.9rem;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.categories-header li a:hover {
	background-color: #f1f5f9;
	border-color: #c6d3e2;
	color: #0f172a;
	transform: translateY(-1px);
}

.categories-header li a:focus-visible {
	border-color: #0f766e;
	outline: 2px solid #0f766e;
	outline-offset: 1px;
}

.categories-header li.current-cat a,
.categories-header li.current-cat-parent a,
.categories-header li a[aria-current="page"] {
	background-color: #0f766e;
	border-color: #0f766e;
	color: #ffffff;
}

@media (max-width: 781px) {
	.categories-scroll-shell::before,
	.categories-scroll-shell::after {
		width: 30px;
	}

	.categories-scroll-arrow {
		display: none;
	}

	.categories-header {
		justify-content: flex-start;
	}

	.categories-header li a {
		font-size: 0.88rem;
		padding: 0.58rem 0.82rem;
	}
}

.clamp-3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.clamp-1 {
	display: -webkit-box;
	-webkit-line-clamp: 1;
	line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.text-decoration-none a {
	text-decoration: none;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}