/*
Theme Name: GeekMag
Theme URI: https://tecnologiageek.com/geekmag/
Author: Tecnología Geek
Author URI: https://tecnologiageek.com/
Description: GeekMag is a modern, fast magazine theme with a section-based homepage of article cards, built with clean semantic HTML5, lightweight CSS (no frameworks) and vanilla JavaScript. Includes a top utility bar with social links, breadcrumbs, native share buttons, an author box, related posts, a newsletter band, banner widget areas and thumbnail post widgets — all controlled from the Customizer. Translation ready.
Version: 1.1.5
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: geekmag
Tags: blog, news, grid-layout, two-columns, right-sidebar, custom-logo, custom-menu, editor-style, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* --------------------------------------------------------------------------
   GeekMag — main stylesheet. No frameworks, CSS custom properties, grid.
   -------------------------------------------------------------------------- */

:root {
	--gm-navy: #0b2447;
	--gm-navy-dark: #081a36;
	--gm-navy-soft: #19376d;
	--gm-accent: #f97316;
	--gm-accent-dark: #d95f06;
	--gm-ink: #1a2433;
	--gm-muted: #5b6b82;
	--gm-bg: #f6f8fb;
	--gm-surface: #ffffff;
	--gm-border: #e2e8f0;
	--gm-radius: 14px;
	--gm-shadow: 0 6px 24px rgba(11, 36, 71, 0.08);
	--gm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--gm-max: 1200px;
	--gm-content: 780px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--gm-font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--gm-ink);
	background: var(--gm-bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--gm-navy-soft);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--gm-accent-dark);
	text-decoration: underline;
}

:focus-visible {
	outline: 3px solid var(--gm-accent);
	outline-offset: 2px;
}

/* Long titles wrap onto the next line instead of stretching the page
   sideways and forcing a horizontal scrollbar. */
.gm-site-title,
.gm-card-title,
.gm-article-title,
.gm-archive-title,
.gm-section-title,
.gm-widget-title,
.gm-thumb-title {
	overflow-wrap: break-word;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
	background: var(--gm-navy);
	clip: auto !important;
	clip-path: none;
	color: #fff;
	height: auto;
	left: 12px;
	padding: 10px 18px;
	top: 12px;
	width: auto;
	z-index: 1000;
	border-radius: 8px;
}

/* Layout ------------------------------------------------------------------ */

.gm-container {
	width: min(100% - 2rem, var(--gm-max));
	margin-inline: auto;
}

.gm-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 2.5rem;
	padding-block: 2.5rem;
}

@media (min-width: 960px) {
	.gm-layout.has-sidebar {
		grid-template-columns: minmax(0, 1fr) 320px;
	}
}

.gm-main {
	min-width: 0;
}

/* Header ------------------------------------------------------------------ */

.gm-header {
	background: var(--gm-navy);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 12px rgba(8, 26, 54, 0.25);
}

.gm-header-inner {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding-block: 0.75rem;
}

.gm-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-right: auto;
	min-width: 0;
}

/* The logo is sized by width (Customizer: "Logo width (px)") so a
   wide banner logo stays legible; the height follows automatically.
   The Customizer value overrides this default through inline CSS. */
.gm-branding .custom-logo {
	height: auto;
	max-width: 100%;
	width: 300px;
}

/* On small screens the logo never takes more than 70% of the
   screen width, so the menu and search buttons keep their row. */
@media (max-width: 639px) {
	.gm-branding .custom-logo {
		max-width: 70vw;
	}
}

.gm-site-title {
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	font-weight: 800;
	line-height: 1.1;
	margin: 0;
	letter-spacing: -0.01em;
}

.gm-site-title a {
	color: #fff;
}

.gm-site-title a:hover {
	color: var(--gm-accent);
	text-decoration: none;
}

.gm-site-description {
	margin: 0;
	font-size: 0.85rem;
	color: #b9c8e2;
}

.gm-nav-toggle,
.gm-search-toggle {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-size: 0.9rem;
	padding: 0.45rem 0.8rem;
}

.gm-nav-toggle:hover,
.gm-search-toggle:hover {
	background: var(--gm-navy-soft);
}

.gm-primary-nav {
	display: none;
}

.gm-primary-nav.is-open {
	display: block;
	padding-bottom: 1rem;
}

.gm-primary-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gm-primary-nav a {
	color: #eaf0fa;
	display: block;
	font-weight: 600;
	padding: 0.5rem 0.25rem;
}

.gm-primary-nav a:hover {
	color: var(--gm-accent);
	text-decoration: none;
}

@media (min-width: 960px) {
	.gm-nav-toggle {
		display: none;
	}

	.gm-primary-nav {
		display: block;
	}

	.gm-primary-nav ul {
		display: flex;
		flex-wrap: wrap;
		gap: 0.25rem 1.25rem;
	}

	.gm-primary-nav li {
		position: relative;
	}

	/* Sub-menus drop down from their parent instead of printing
	   statically in the row (1.1.3): hidden until the parent item
	   is hovered or contains focus. Deeper levels fly out to the
	   right of their own parent. */
	.gm-primary-nav .sub-menu {
		background: var(--gm-navy-soft);
		border-radius: 0 0 10px 10px;
		box-shadow: 0 12px 28px rgba(8, 26, 54, 0.35);
		display: block;
		left: 0;
		min-width: 220px;
		opacity: 0;
		padding: 0.4rem;
		position: absolute;
		top: 100%;
		visibility: hidden;
		z-index: 200;
	}

	.gm-primary-nav li:hover > .sub-menu,
	.gm-primary-nav li:focus-within > .sub-menu {
		opacity: 1;
		visibility: visible;
	}

	.gm-primary-nav .sub-menu .sub-menu {
		border-radius: 0 10px 10px 0;
		left: 100%;
		top: 0;
	}

	.gm-primary-nav .sub-menu a {
		border-radius: 6px;
		padding: 0.5rem 0.75rem;
	}

	.gm-primary-nav .sub-menu a:hover {
		background: rgba(255, 255, 255, 0.08);
	}
}

.gm-search-wrap {
	display: none;
	padding-bottom: 1rem;
}

.gm-search-wrap.is-open {
	display: block;
}

.gm-search-form {
	display: flex;
	gap: 0.5rem;
}

.gm-search-form input[type="search"] {
	flex: 1;
	border: 1px solid var(--gm-border);
	border-radius: 8px;
	font: inherit;
	padding: 0.55rem 0.8rem;
}

.gm-search-form button,
.gm-button {
	background: var(--gm-accent);
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: 0.55rem 1.1rem;
}

.gm-search-form button:hover,
.gm-button:hover {
	background: var(--gm-accent-dark);
	color: #fff;
	text-decoration: none;
}

/* Hero & sections --------------------------------------------------------- */

.gm-hero {
	padding-top: 2rem;
}

.gm-hero-grid {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 900px) {
	.gm-hero-grid {
		grid-template-columns: 2fr 1fr;
		align-items: stretch;
	}

	/* Compact hero: the side column shares the large card's full height,
	   split into equal rows (one per small card), so it ends flush. */
	.gm-hero-side {
		grid-template-rows: repeat(4, minmax(0, 1fr));
		height: 100%;
	}

	.gm-hero-side--1 {
		grid-template-rows: repeat(1, minmax(0, 1fr));
	}

	.gm-hero-side--2 {
		grid-template-rows: repeat(2, minmax(0, 1fr));
	}

	.gm-hero-side--3 {
		grid-template-rows: repeat(3, minmax(0, 1fr));
	}

	.gm-hero-side--4 {
		grid-template-rows: repeat(4, minmax(0, 1fr));
	}

	.gm-hero-side .gm-card--small {
		min-height: 0;
	}
}

.gm-hero-side {
	display: grid;
	gap: 1.25rem;
	align-content: start;
}

@media (min-width: 900px) {
	.gm-hero-side {
		align-content: stretch;
	}
}

.gm-section {
	padding-top: 2.5rem;
}

.gm-section-head {
	align-items: baseline;
	border-bottom: 3px solid var(--gm-navy);
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 1.25rem;
	padding-bottom: 0.4rem;
}

.gm-section-title {
	font-size: clamp(1.3rem, 2.4vw, 1.7rem);
	margin: 0;
	color: var(--gm-navy);
}

.gm-section-title::before {
	content: "";
	display: inline-block;
	width: 0.55em;
	height: 0.55em;
	background: var(--gm-accent);
	border-radius: 2px;
	margin-right: 0.45em;
}

.gm-section-more {
	font-weight: 700;
	white-space: nowrap;
}

.gm-cards {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.gm-cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.gm-cards.cols-3 {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Cards ------------------------------------------------------------------- */

.gm-card {
	background: var(--gm-surface);
	border: 1px solid var(--gm-border);
	border-radius: var(--gm-radius);
	box-shadow: var(--gm-shadow);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.gm-card-media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--gm-navy-soft);
}

.gm-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.gm-card:hover .gm-card-media img {
	transform: scale(1.04);
}

.gm-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem 1.1rem 1.2rem;
}

.gm-card-title {
	font-size: 1.12rem;
	line-height: 1.3;
	margin: 0;
}

.gm-card-title a {
	color: var(--gm-ink);
}

.gm-card-title a:hover {
	color: var(--gm-navy-soft);
}

.gm-card--hero .gm-card-title {
	font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.gm-card--small {
	flex-direction: row;
	align-items: stretch;
}

.gm-card--small .gm-card-media {
	aspect-ratio: auto;
	flex: 0 0 38%;
}

.gm-card--small .gm-card-title {
	font-size: 1rem;
}

.gm-chip {
	align-self: flex-start;
	background: var(--gm-accent);
	border-radius: 999px;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	padding: 0.2rem 0.65rem;
	text-transform: uppercase;
}

a.gm-chip:hover {
	background: var(--gm-accent-dark);
	color: #fff;
	text-decoration: none;
}

.gm-meta {
	color: var(--gm-muted);
	font-size: 0.82rem;
	margin: 0;
}

.gm-meta .gm-edit-link {
	color: inherit;
	text-decoration: underline;
}

.gm-card-excerpt {
	color: var(--gm-muted);
	margin: 0;
	font-size: 0.95rem;
}

/* Single / page ----------------------------------------------------------- */

.gm-article-header {
	margin-bottom: 1.5rem;
}

.gm-article-title {
	font-size: clamp(1.8rem, 4.5vw, 2.6rem);
	line-height: 1.15;
	margin: 0.5rem 0;
	color: var(--gm-navy-dark);
}

.gm-article-media {
	margin: 0 0 1.5rem;
}

.gm-article-media img {
	border-radius: var(--gm-radius);
	width: 100%;
}

.gm-entry-content {
	font-size: 1.06rem;
	max-width: var(--gm-content);
}

.gm-entry-content > * + * {
	margin-top: 1.1em;
}

.gm-entry-content h2,
.gm-entry-content h3 {
	color: var(--gm-navy);
	line-height: 1.25;
}

.gm-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 2rem 0 0;
	padding: 0;
}

.gm-tags a {
	background: #eaf0f8;
	border-radius: 999px;
	color: var(--gm-navy);
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0.25rem 0.75rem;
}

.gm-post-nav {
	border-top: 1px solid var(--gm-border);
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-top: 2.5rem;
	padding-top: 1.25rem;
}

.gm-post-nav a {
	font-weight: 700;
}

/* Pagination -------------------------------------------------------------- */

.gm-pagination {
	margin-top: 2.5rem;
}

.gm-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.gm-pagination .page-numbers {
	background: var(--gm-surface);
	border: 1px solid var(--gm-border);
	border-radius: 8px;
	color: var(--gm-navy);
	font-weight: 700;
	padding: 0.45rem 0.85rem;
}

.gm-pagination .page-numbers.current {
	background: var(--gm-navy);
	color: #fff;
}

/* Sidebar ----------------------------------------------------------------- */

.gm-widget {
	background: var(--gm-surface);
	border: 1px solid var(--gm-border);
	border-radius: var(--gm-radius);
	margin-bottom: 1.5rem;
	padding: 1.2rem;
}

.gm-widget-title {
	border-bottom: 3px solid var(--gm-accent);
	color: var(--gm-navy);
	font-size: 1.05rem;
	margin: 0 0 0.9rem;
	padding-bottom: 0.4rem;
}

.gm-widget ul {
	margin: 0;
	padding-left: 1.1rem;
}

/* Archive header ---------------------------------------------------------- */

.gm-archive-head {
	padding-top: 2.5rem;
}

.gm-archive-title {
	color: var(--gm-navy);
	font-size: clamp(1.7rem, 4vw, 2.3rem);
	margin: 0 0 0.5rem;
}

.gm-archive-description {
	color: var(--gm-muted);
	max-width: var(--gm-content);
}

/* Footer ------------------------------------------------------------------ */

.gm-footer {
	background: var(--gm-navy-dark);
	color: #cdd9ec;
	margin-top: 3rem;
	padding: 2.5rem 0 2rem;
}

.gm-footer-inner {
	display: grid;
	gap: 1.5rem;
	text-align: center;
}

.gm-footer .gm-site-title a {
	color: #fff;
}

.gm-footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gm-footer-nav a {
	color: #cdd9ec;
	font-weight: 600;
}

.gm-footer-nav a:hover {
	color: var(--gm-accent);
}

.gm-credit {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 0.9rem;
	margin: 0;
	padding-top: 1.25rem;
}

.gm-credit a {
	color: #fff;
	font-weight: 700;
}

.gm-credit a:hover {
	color: var(--gm-accent);
}

/* Comments ---------------------------------------------------------------- */

.gm-comments {
	margin-top: 3rem;
	max-width: var(--gm-content);
}

.gm-comments-title {
	color: var(--gm-navy);
}

.gm-comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gm-comment-list .comment {
	border-top: 1px solid var(--gm-border);
	padding: 1.25rem 0;
}

.gm-comment-list .children {
	list-style: none;
	margin-top: 1rem;
}

.comment-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	border: 1px solid var(--gm-border);
	border-radius: 8px;
	font: inherit;
	max-width: 100%;
	padding: 0.55rem 0.8rem;
	width: 100%;
}

.comment-form input[type="submit"] {
	background: var(--gm-accent);
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: 0.6rem 1.3rem;
}

.comment-form input[type="submit"]:hover {
	background: var(--gm-accent-dark);
}

/* WordPress required classes ---------------------------------------------- */

.alignleft {
	float: left;
	margin: 0.4em 1.2em 1em 0;
}

.alignright {
	float: right;
	margin: 0.4em 0 1em 1.2em;
}

.aligncenter {
	display: block;
	margin-inline: auto;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	color: var(--gm-muted);
	font-size: 0.85rem;
	text-align: center;
}

.sticky {
	border-color: var(--gm-accent);
}

.bypostauthor {
	background: #fdf3e7;
}

/* 404 --------------------------------------------------------------------- */

.gm-404 {
	padding-block: 3rem;
	text-align: center;
}

.gm-404 h1 {
	color: var(--gm-navy);
	font-size: clamp(2.2rem, 6vw, 3.5rem);
	margin: 0 0 0.5rem;
}

.gm-404 .gm-search-form {
	margin: 1.5rem auto 0;
	max-width: 480px;
	text-align: left;
}

/* Top bar ------------------------------------------------------------------ */

.gm-topbar {
	background: var(--gm-navy-dark);
	color: #cdd9ec;
	font-size: 0.85rem;
}

.gm-topbar-inner {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.25rem;
	justify-content: space-between;
	padding-block: 0.45rem;
}

.gm-social ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gm-social a {
	color: #cdd9ec;
	font-weight: 600;
	padding: 0.15rem 0.1rem;
}

.gm-social a:hover,
.gm-social a:focus {
	color: var(--gm-accent);
	text-decoration: none;
}

.gm-topbar-date {
	color: #9db1d6;
	margin: 0;
	white-space: nowrap;
}

@media (max-width: 639px) {
	.gm-topbar-inner {
		font-size: 0.8rem;
		gap: 0.2rem 0.75rem;
		justify-content: center;
		text-align: center;
	}

	.gm-social ul {
		gap: 0.15rem 0.7rem;
		justify-content: center;
	}
}

/* Breadcrumbs --------------------------------------------------------------- */

.gm-breadcrumbs {
	padding-top: 1.5rem;
}

.gm-breadcrumbs ol {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem 0.55rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.gm-crumb {
	color: var(--gm-muted);
	font-size: 0.88rem;
	min-width: 0;
}

.gm-crumb a {
	color: var(--gm-navy-soft);
	font-weight: 600;
}

.gm-crumb a:hover,
.gm-crumb a:focus {
	color: var(--gm-accent-dark);
}

.gm-crumb + .gm-crumb::before {
	color: var(--gm-muted);
	content: "»";
	margin-right: 0.55rem;
}

.gm-crumb [aria-current="page"] {
	color: var(--gm-ink);
	display: inline-block;
	max-width: 42ch;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: bottom;
	white-space: nowrap;
}

@media (max-width: 639px) {
	.gm-crumb [aria-current="page"] {
		max-width: 24ch;
	}
}

/* Banner areas ---------------------------------------------------------------- */

.gm-banner {
	padding-top: 2rem;
}

.gm-banner--banner-top {
	padding-top: 1.25rem;
}

.gm-banner-widget {
	text-align: center;
}

.gm-banner-widget img {
	margin-inline: auto;
}

.gm-banner-title {
	color: var(--gm-muted);
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	margin: 0 0 0.5rem;
	text-align: center;
	text-transform: uppercase;
}

/* Newsletter band --------------------------------------------------------------- */

.gm-newsletter {
	padding-top: 2.5rem;
}

.gm-newsletter-inner {
	align-items: center;
	background: linear-gradient(135deg, var(--gm-navy) 0%, var(--gm-navy-soft) 100%);
	border-radius: var(--gm-radius);
	box-shadow: var(--gm-shadow);
	color: #fff;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
	justify-content: space-between;
	padding: clamp(1.4rem, 4vw, 2.2rem);
}

.gm-newsletter-text {
	flex: 1 1 320px;
	min-width: 0;
}

.gm-newsletter-text h2 {
	color: #fff;
	font-size: clamp(1.3rem, 2.6vw, 1.8rem);
	margin: 0;
}

.gm-newsletter-text p {
	color: #cdd9ec;
	margin: 0.4rem 0 0;
}

.gm-newsletter-btn {
	flex: 0 0 auto;
	font-size: 1rem;
	padding: 0.75rem 1.6rem;
}

/* Share buttons ------------------------------------------------------------------- */

.gm-share {
	align-items: center;
	border-top: 1px solid var(--gm-border);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2rem;
	padding-top: 1.25rem;
}

.gm-share-label {
	color: var(--gm-navy);
	font-weight: 800;
	margin-right: 0.25rem;
}

.gm-share-link {
	background: #eaf0f8;
	border: 0;
	border-radius: 999px;
	color: var(--gm-navy);
	cursor: pointer;
	font: inherit;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.4;
	padding: 0.4rem 0.9rem;
}

a.gm-share-link:hover,
a.gm-share-link:focus,
button.gm-share-link:hover,
button.gm-share-link:focus {
	background: var(--gm-navy);
	color: #fff;
	text-decoration: none;
}

.gm-share-copied {
	color: var(--gm-accent-dark);
	font-size: 0.85rem;
	font-weight: 700;
}

/* Divider lines: one closes the share block (whatever ends the
   post — the tag list on a clean install — starts below it) and
   the same line separates a post's featured photo, caption
   included, from the article text. */
.gm-share-divider,
.gm-divider {
	border: 0;
	border-top: 1px solid var(--gm-border);
}

.gm-share-divider {
	margin: 1.25rem 0 0;
}

.gm-divider {
	margin: 1.25rem 0 1.5rem;
}

/* Author box ------------------------------------------------------------------------ */

.gm-author-box {
	background: var(--gm-surface);
	border: 1px solid var(--gm-border);
	border-radius: var(--gm-radius);
	box-shadow: var(--gm-shadow);
	display: flex;
	gap: 1.1rem;
	margin-top: 2.5rem;
	max-width: var(--gm-content);
	padding: 1.25rem;
}

.gm-author-avatar {
	border-radius: 50%;
	flex: 0 0 auto;
	height: 96px;
	width: 96px;
}

.gm-author-label {
	color: var(--gm-accent-dark);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	margin: 0 0 0.2rem;
	text-transform: uppercase;
}

.gm-author-name {
	font-size: 1.12rem;
	font-weight: 800;
	margin: 0;
}

.gm-author-name a {
	color: var(--gm-navy);
}

.gm-author-name a:hover,
.gm-author-name a:focus {
	color: var(--gm-accent-dark);
}

.gm-author-bio {
	color: var(--gm-muted);
	font-size: 0.95rem;
}

.gm-author-bio p {
	margin: 0.35rem 0;
}

.gm-author-more {
	font-size: 0.9rem;
	font-weight: 700;
}

@media (max-width: 639px) {
	.gm-author-box {
		align-items: center;
		flex-direction: column;
		text-align: center;
	}
}

/* Related posts ------------------------------------------------------------------------ */

.gm-related {
	margin-top: 2.5rem;
}

.gm-related-title {
	border-bottom: 3px solid var(--gm-navy);
	margin-bottom: 1.25rem;
	padding-bottom: 0.4rem;
}

/* Thumbnail post lists (widgets) --------------------------------------------------------- */

.gm-widget .gm-thumb-list {
	display: grid;
	gap: 0.9rem;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.gm-thumb-list li {
	align-items: flex-start;
	display: flex;
	gap: 0.75rem;
	min-width: 0;
}

.gm-thumb-media {
	flex: 0 0 auto;
}

.gm-thumb-media img {
	border-radius: 10px;
	display: block;
	height: 72px;
	object-fit: cover;
	width: 72px;
}

.gm-thumb-body {
	min-width: 0;
}

.gm-thumb-title {
	color: var(--gm-ink);
	display: block;
	font-weight: 700;
	line-height: 1.35;
}

.gm-thumb-title:hover,
.gm-thumb-title:focus {
	color: var(--gm-accent-dark);
}

.gm-thumb-date {
	color: var(--gm-muted);
	display: block;
	font-size: 0.78rem;
	margin-top: 0.15rem;
}

/* Latest posts (homepage closing section) ------------------------------------- */

.gm-latest-more {
	margin-top: 1.5rem;
	text-align: center;
}

.gm-latest-more .gm-button {
	display: inline-block;
}

/* Motion ------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Back to top --------------------------------------------------------------------- */

.gm-back-to-top {
	align-items: center;
	background: var(--gm-navy);
	border: 0;
	border-radius: 50%;
	bottom: 1.25rem;
	box-shadow: var(--gm-shadow);
	color: #fff;
	cursor: pointer;
	display: flex;
	height: 44px;
	justify-content: center;
	opacity: 0;
	padding: 0;
	position: fixed;
	right: 1.25rem;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, visibility 0.25s;
	visibility: hidden;
	width: 44px;
	z-index: 90;
}

.gm-back-to-top.is-visible {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
}

.gm-back-to-top:hover,
.gm-back-to-top:focus {
	background: var(--gm-accent);
	color: #fff;
}

.gm-back-to-top svg {
	display: block;
}

@media (max-width: 639px) {
	.gm-back-to-top {
		bottom: 1rem;
		right: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gm-back-to-top {
		transition: none;
	}
}
