/*
 * Single post redesign (zeen-child/single-post.php). Plan: docs/single-post.MD.
 * Fonts are NOT changed: everything inherits the site font set in the Customizer.
 * Affiliatable cards ([class*="cg-choice-box"]) are not restyled here, except the hover fix below.
 */

/* Contents links glide to their heading, as in the wireframe. Single posts only (body class tg-single-post). */
@media (prefers-reduced-motion: no-preference) {
	html:has(body.tg-single-post) {
		scroll-behavior: smooth;
	}
}

/* Affiliatable style one: the plugin's 1px hover border moved the content; draw it as a shadow instead. */
.tg-sp .cg-choice-box-one .cg-cb-row .cg-cb-items:hover {
	border: 0;
	box-shadow: 0 0 0 1px var(--cg-theme-color), 0 3px 12px 0 rgba(79, 79, 79, .12);
}

/* Affiliatable style one: animate the plugin's 1.4x hover zoom (the plugin sets no transition). */
.tg-sp .cg-choice-box-one .cg-cb-row .cg-cb-img img {
	transition: transform .35s ease !important;
}

@media (prefers-reduced-motion: reduce) {
	.tg-sp .cg-choice-box-one .cg-cb-row .cg-cb-img img {
		transition: none !important;
	}
}

.tg-sp {
	--tg-text: #171b22;
	--tg-muted: #515159;
	--tg-accent: #0c6986;
	--tg-accent-hover: #0a5a73;
	--tg-faint: rgba(12, 105, 134, .08);
	--tg-light: #e1f1f5;
	--tg-coral: #f15060;
	--tg-border: #e1e5e5;
	--tg-border-light: #f5f7f7;
	--tg-stripe: #f5f7f7;
	--tg-th: rgba(12, 105, 134, .06);
	--tg-side: 205px;
	--tg-main: 700px;
	color: var(--tg-text);
}

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

.tg-sp__wrap {
	display: flex;
	position: relative;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

.tg-sp__side {
	flex-shrink: 0;
	width: var(--tg-side);
}

.tg-sp__side-inner {
	position: sticky;
	top: 90px;
	max-height: calc(100vh - 106px);
	padding: 32px 24px 24px 0;
	overflow-y: auto;
}

.tg-sp__main {
	flex: 1;
	min-width: 0;
	max-width: var(--tg-main);
	margin: 0 auto;
	padding: 32px 0 80px;
}

@media (max-width: 1024px) {
	.tg-sp__side {
		display: none;
	}
}

@media (max-width: 767px) {
	.tg-sp__wrap {
		padding: 0 16px;
	}

	.tg-sp__main {
		padding-top: 20px;
	}
}

/* ---------- On this page ---------- */

.tg-toc__label {
	margin: 0 0 12px;
	color: var(--tg-muted);
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.tg-sp .tg-toc__link {
	display: block;
	margin-bottom: 1px;
	padding: 7px 0 7px 14px;
	border-left: 2px solid var(--tg-border);
	border-radius: 0 6px 6px 0;
	color: var(--tg-muted);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	transition: color .15s, background-color .15s, border-color .15s;
}

.tg-sp .tg-toc__link:hover,
.tg-sp .tg-toc__link.is-active {
	border-left-color: var(--tg-accent);
	background: var(--tg-faint);
	color: var(--tg-accent);
}

.tg-sp .tg-toc__link.is-active {
	font-weight: 600;
}

/* ---------- Buttons ---------- */

.tg-sp .tg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 11px 26px;
	border: 0;
	border-radius: 50rem;
	background: var(--tg-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .15s;
}

.tg-sp .tg-btn:hover,
.tg-sp .tg-btn:focus-visible {
	background: var(--tg-accent-hover);
	color: #fff;
}

.tg-sp .tg-btn--sm {
	width: 100%;
	padding: 8px 18px;
	font-size: 12px;
}

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

.tg-side-cta {
	margin-top: 20px;
	padding: 20px 16px;
	border-radius: 15px;
	background: var(--tg-light);
}

.tg-side-cta .tg-side-cta__title {
	margin: 0 0 8px;
	color: var(--tg-accent);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}

.tg-side-cta .tg-side-cta__text {
	margin: 0 0 14px;
	color: var(--tg-muted);
	font-size: 12px;
	line-height: 1.5;
}

/* No button (or no text): no gap at the bottom of the box. */
.tg-side-cta .tg-side-cta__title:last-child,
.tg-side-cta .tg-side-cta__text:last-child {
	margin-bottom: 0;
}

/* ---------- Breadcrumbs (Yoast) ---------- */

.tg-crumbs {
	margin: 0 0 20px;
	color: var(--tg-muted);
	font-size: 12px;
	line-height: 1.5;
}

.tg-crumbs a {
	color: var(--tg-muted);
	text-decoration: none;
}

.tg-crumbs a:hover {
	color: var(--tg-accent);
}

.tg-crumbs__sep {
	margin: 0 7px;
	opacity: .3;
}

.tg-crumbs .breadcrumb_last {
	color: var(--tg-text);
	font-weight: 600;
}

/* ---------- Article header ---------- */

.tg-head {
	margin-bottom: 28px;
}

.tg-head__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}

.tg-sp .tg-pill {
	display: inline-flex;
	align-items: center;
	height: 26px;
	padding: 0 12px;
	border-radius: 50rem;
	background: var(--tg-faint);
	color: var(--tg-accent);
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .05em;
	text-decoration: none;
	text-transform: uppercase;
}

.tg-sp a.tg-pill:hover {
	background: var(--tg-accent);
	color: #fff;
}

.tg-sp .tg-pill--badge {
	background: var(--tg-coral);
	color: #fff;
}

.tg-sp .tg-head__title {
	margin: 0 0 12px;
	color: var(--tg-text);
	font-size: clamp(28px, 5vw, 42px);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -.02em;
}

.tg-sp .tg-head__subtitle {
	max-width: 600px;
	margin: 0 0 22px;
	color: var(--tg-muted);
	font-size: clamp(15px, 1.8vw, 17px);
	font-style: italic;
	line-height: 1.55;
}

.tg-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--tg-border);
}

.tg-byline__author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.tg-sp .tg-byline__author img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.tg-byline__name {
	display: block;
	color: var(--tg-text);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.2;
}

.tg-byline__role {
	display: block;
	margin-top: 2px;
	color: var(--tg-muted);
	font-size: 11.5px;
	line-height: 1.2;
}

.tg-byline__sep {
	flex-shrink: 0;
	width: 1px;
	height: 24px;
	background: var(--tg-border);
}

.tg-byline__sep--sm {
	height: 20px;
}

.tg-byline__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-left: auto;
}

.tg-byline__item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--tg-muted);
	font-size: 12px;
	line-height: 1;
}

@media (max-width: 600px) {
	.tg-byline .tg-byline__sep {
		display: none;
	}

	.tg-byline__meta {
		margin-left: 0;
	}
}

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

.tg-share,
.tg-author__socials {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tg-sp .tg-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--tg-border);
	border-radius: 7px;
	background: #fff;
	color: var(--tg-muted);
	cursor: pointer;
	transition: color .15s, border-color .15s, background-color .15s;
}

.tg-sp .tg-share__btn:hover,
.tg-sp .tg-share__btn:focus-visible {
	border-color: var(--tg-accent);
	background: var(--tg-faint);
	color: var(--tg-accent);
}

.tg-sp .tg-share__btn--sm {
	width: 32px;
	height: 32px;
	border-radius: 6px;
}

.tg-share__icon-done,
.tg-share__copy.is-copied .tg-share__icon-copy {
	display: none;
}

.tg-share__copy.is-copied .tg-share__icon-done {
	display: inline-flex;
	color: var(--tg-accent);
}

.tg-share__icon-copy {
	display: inline-flex;
}

/* ---------- Fact-check ---------- */

.tg-factcheck {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 14px;
	padding: 8px 14px;
	border: 1px solid rgba(255, 201, 31, .4);
	border-radius: 7px;
	background: var(--tg-faint);
	color: var(--tg-accent);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
}

.tg-factcheck svg {
	flex-shrink: 0;
}

/* ---------- Featured image ---------- */

.tg-hero {
	margin: 0 0 32px;
	overflow: hidden;
	border: 1px solid var(--tg-border);
	border-radius: 15px;
	background: var(--tg-light);
	aspect-ratio: 16 / 9;
}

.tg-sp .tg-hero img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Post content ---------- */

.tg-sp .tg-content {
	color: var(--tg-muted);
	font-size: 15.5px;
	line-height: 1.72;
}

.tg-sp .tg-content p {
	margin: 0 0 16px;
	color: var(--tg-muted);
	font-size: 15.5px;
	line-height: 1.72;
}

.tg-sp .tg-content strong,
.tg-sp .tg-content b {
	color: var(--tg-text);
}

.tg-sp .tg-content a:not(.tg-btn):not([class*="cg-"]):not(.tg-promo__link) {
	color: var(--tg-accent);
	text-decoration: underline;
	text-decoration-color: rgba(12, 105, 134, .3);
	text-underline-offset: 3px;
}

.tg-sp .tg-content a:not(.tg-btn):not([class*="cg-"]):not(.tg-promo__link):hover {
	color: var(--tg-accent-hover);
	text-decoration-color: currentColor;
}

.tg-sp .tg-content h2,
.tg-sp .tg-section-title {
	margin: 48px 0 16px;
	color: var(--tg-text);
	font-size: clamp(22px, 3.5vw, 26px);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.01em;
	scroll-margin-top: 100px;
}

.tg-sp .tg-content > h2:first-child {
	margin-top: 0;
}

.tg-sp .tg-content h3 {
	margin: 28px 0 10px;
	color: var(--tg-text);
	font-size: clamp(18px, 2.5vw, 21px);
	font-weight: 600;
	line-height: 1.3;
	scroll-margin-top: 100px;
}

.tg-sp .tg-content h4 {
	margin: 24px 0 8px;
	color: var(--tg-text);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

.tg-sp .tg-content h2 b,
.tg-sp .tg-content h2 strong,
.tg-sp .tg-content h3 b,
.tg-sp .tg-content h3 strong {
	font-weight: inherit;
}

.tg-sp .tg-content img:not([class*="cg-"]) {
	border-radius: 10px;
}

/* Zeen hides .alignnone / .aligncenter in .entry-content (opacity 0) until its script fades them in,
   but that script only looks inside Zeen's own .post-wrap, which this template doesn't have. */
.tg-sp .entry-content .alignnone,
.tg-sp .entry-content .aligncenter {
	opacity: 1;
}

/* Space under images and figures, unless they are the last item (tables have their own margin). */
.tg-sp .tg-content figure:not(.wp-block-table):not(:last-child),
.tg-sp .tg-content > img:not(:last-child) {
	margin-bottom: 24px;
}

/* Bullet lists in the article (direct children only: lists inside cards, tiles and blocks keep their own style). */
.tg-sp .tg-content > ul,
.tg-sp .tg-content > .wp-block-list:is(ul) {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin: 20px 0;
	padding: 0;
	list-style: none;
}

.tg-sp .tg-content > ul > li {
	position: relative;
	margin: 0;
	padding: 0 0 0 16px;
	color: var(--tg-muted);
	font-size: 14.5px;
	line-height: 1.6;
}

.tg-sp .tg-content > ul > li::before {
	content: "";
	position: absolute;
	top: 9px;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tg-accent);
}

.tg-sp .tg-content > ol {
	margin: 20px 0;
	padding-left: 22px;
}

.tg-sp .tg-content > ol > li {
	margin: 0 0 7px;
	color: var(--tg-muted);
	font-size: 14.5px;
	line-height: 1.6;
}

.tg-sp .tg-content > ol > li::marker {
	color: var(--tg-accent);
	font-weight: 700;
}

/* Tables. Many tables carry inline styles (teal header, Arial, borders), hence !important. */
.tg-sp .tg-content figure.wp-block-table,
.tg-sp .tg-content .tg-table-wrap {
	margin: 22px 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.tg-sp .tg-content table {
	width: 100% !important;
	margin: 22px 0;
	overflow: hidden;
	border: 1px solid var(--tg-border) !important;
	border-collapse: separate !important;
	border-spacing: 0;
	border-radius: 10px;
	background: #fff !important;
	box-shadow: none !important;
	font-family: inherit !important;
	font-size: 13.5px;
	line-height: 1.5;
}

.tg-sp .tg-content figure.wp-block-table table {
	margin: 0;
}

.tg-sp .tg-content table tr {
	background: transparent !important;
	color: inherit !important;
}

.tg-sp .tg-content table th,
.tg-sp .tg-content table thead td {
	padding: 11px 14px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--tg-border) !important;
	background: var(--tg-th) !important;
	color: var(--tg-text) !important;
	font-weight: 700;
	text-align: left;
	vertical-align: bottom;
}

.tg-sp .tg-content table td {
	padding: 10px 14px !important;
	border: 0 !important;
	border-bottom: 1px solid var(--tg-border-light) !important;
	background: transparent !important;
	color: var(--tg-muted) !important;
	vertical-align: top;
	transition: background-color .1s;
}

.tg-sp .tg-content table td:first-child {
	color: var(--tg-text) !important;
	font-weight: 600;
}

.tg-sp .tg-content table tbody tr:last-child td {
	border-bottom: 0 !important;
}

.tg-sp .tg-content table tbody tr:nth-child(even) td {
	background: var(--tg-stripe) !important;
}

.tg-sp .tg-content table tbody tr:hover td {
	background: var(--tg-faint) !important;
}

.tg-sp .tg-content table mark {
	background: none !important;
	color: inherit !important;
}

.tg-sp .tg-content table a {
	color: var(--tg-accent) !important;
}

.tg-sp .tg-content .wp-block-table.is-style-stripes {
	border-bottom: 0;
}

.tg-sp .tg-content .wp-block-table figcaption {
	margin-top: 8px;
	color: var(--tg-muted);
	font-size: 12px;
	text-align: left;
}

@media (max-width: 600px) {
	.tg-sp .tg-content table {
		display: block;
		overflow-x: auto;
		white-space: normal;
	}

	.tg-sp .tg-content table th,
	.tg-sp .tg-content table td {
		min-width: 120px;
	}
}

/* Quotes: real quotes and interviews, kept simple and on brand. */
.tg-sp .tg-content blockquote {
	margin: 24px 0;
	padding: 4px 0 4px 18px;
	border-left: 3px solid var(--tg-accent);
	color: var(--tg-text);
}

/* Key Takeaways block: title keeps its own style (blocks/key-takeaways/style.css) */
.tg-sp .tg-content .tg-takeaways .tg-takeaways__title {
	margin: 0 0 14px;
	color: var(--tg-accent);
	font-size: 11.5px;
	line-height: 1;
}

/* Callout block: text keeps the box colour (blocks/callout/style.css) */
.tg-sp .tg-content .tg-callout p {
	margin: 0 0 8px;
	color: inherit;
	font-size: 14px;
	line-height: 1.6;
}

.tg-sp .tg-content .tg-callout p:last-child {
	margin-bottom: 0;
}

.tg-sp .tg-content .tg-callout strong,
.tg-sp .tg-content .tg-callout b,
.tg-sp .tg-content .tg-callout a:not(.tg-btn):not([class*="cg-"]):not(.tg-promo__link) {
	color: inherit;
}

.tg-sp .tg-content .tg-callout a:not(.tg-btn):not([class*="cg-"]):not(.tg-promo__link) {
	text-decoration-color: currentColor;
}

/* Before vs After pattern */
.tg-sp .tg-content .tg-ba {
	margin: 0 0 44px;
	overflow: hidden;
	border: 1px solid var(--tg-border);
	border-radius: 10px;
}

.tg-sp .tg-content .tg-ba__title {
	margin: 0;
	padding: 14px 20px;
	border-bottom: 1px solid var(--tg-border);
	background: var(--tg-th);
	font-size: 15px;
	font-weight: 600;
}

.tg-sp .tg-content .tg-ba__cols {
	gap: 0;
	margin: 0;
}

.tg-sp .tg-content .tg-ba__col {
	padding: 16px 18px;
}

.tg-sp .tg-content .tg-ba__col--before {
	border-right: 1px solid var(--tg-border);
	--tg-ba: #b8c6cc;
}

.tg-sp .tg-content .tg-ba__col--after {
	--tg-ba: var(--tg-accent);
}

.tg-sp .tg-content .tg-ba__label {
	margin: 0 0 10px;
	color: var(--tg-ba);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tg-sp .tg-content .tg-ba__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tg-sp .tg-content .tg-ba__list li {
	position: relative;
	margin: 0 0 5px;
	padding-left: 12px;
	color: var(--tg-muted);
	font-size: 13px;
	line-height: 1.5;
}

.tg-sp .tg-content .tg-ba__list li::before {
	content: "";
	position: absolute;
	top: 8px;
	left: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--tg-ba);
}

@media (max-width: 781px) {
	.tg-sp .tg-content .tg-ba__col--before {
		border-right: 0;
		border-bottom: 1px solid var(--tg-border);
	}
}

/* ---------- Shop Offer Sync tiles → light-teal CTA strip ---------- */

.tg-sp .tg-promo.tg-promo--wide {
	margin: 32px 0 44px;
}

.tg-sp .tg-promo.tg-promo--wide a.tg-promo__link {
	display: block;
	padding: 28px 32px;
	border-radius: 15px;
	background: var(--tg-light);
	color: var(--tg-text) !important;
	font-family: inherit;
	text-decoration: none !important;
}

.tg-sp .tg-promo.tg-promo--wide .tg-promo__img,
.tg-sp .tg-promo.tg-promo--wide .tg-promo__usps {
	display: none;
}

/* Text on the left, button vertically centred on the right (absolute, so name + deal stay one line). */
.tg-sp .tg-promo.tg-promo--wide .tg-promo__body {
	display: block;
	position: relative;
	min-height: 42px;
	padding-right: 170px;
}

.tg-sp .tg-promo.tg-promo--wide .tg-promo__eyebrow {
	display: block;
	margin: 0 0 6px;
	color: var(--tg-muted);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .08em;
}

.tg-sp .tg-promo.tg-promo--wide .tg-promo__name,
.tg-sp .tg-promo.tg-promo--wide .tg-promo__deal {
	display: inline;
	margin: 0;
	padding: 0;
	border-radius: 0;
	background: none;
	color: var(--tg-accent);
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
}

.tg-sp .tg-promo.tg-promo--wide .tg-promo__name::after {
	content: ": ";
}

.tg-sp .tg-promo.tg-promo--wide .tg-promo__deal {
	color: var(--tg-coral);
}

.tg-sp .tg-promo.tg-promo--wide .tg-promo__rest {
	display: block;
	margin: 3px 0 0;
	color: var(--tg-muted);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
}

.tg-sp .tg-promo.tg-promo--wide .tg-promo__btn {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	/* Centred with auto margins, not translateY(-50%): the half-pixel offset made the button jump 1px during the hover transition. */
	height: fit-content;
	margin: auto 0;
	padding: 11px 26px;
	border-radius: 50rem;
	background: var(--tg-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
}

.tg-sp .tg-promo.tg-promo--wide .tg-promo__btn::after {
	content: "→";
	margin-left: .3em;
}

.tg-sp .tg-promo.tg-promo--wide a.tg-promo__link:hover .tg-promo__btn,
.tg-sp .tg-promo.tg-promo--wide a.tg-promo__link:focus-visible .tg-promo__btn {
	background: var(--tg-accent-hover);
}

/* Name-only offers (no percentage): the name is the whole headline, no colon. */
.tg-sp .tg-promo.tg-promo--wide .tg-promo__name:not(:has(+ .tg-promo__deal))::after {
	content: none;
}

@media (max-width: 600px) {
	.tg-sp .tg-promo.tg-promo--wide a.tg-promo__link {
		padding: 22px 20px;
	}

	.tg-sp .tg-promo.tg-promo--wide .tg-promo__body {
		min-height: 0;
		padding-right: 0;
	}

	.tg-sp .tg-promo.tg-promo--wide .tg-promo__btn {
		display: inline-flex;
		position: static;
		transform: none;
		margin-top: 14px;
	}
}

/* ---------- Date box ---------- */

.tg-dates {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 40px 0 32px;
	padding: 10px 14px;
	border: 1px solid var(--tg-border);
	border-radius: 8px;
	color: var(--tg-accent);
}

.tg-dates svg {
	flex-shrink: 0;
	margin-top: 2px;
}

.tg-sp .tg-dates p {
	margin: 0;
	color: var(--tg-muted);
	font-size: 12.5px;
	line-height: 1.4;
}

.tg-sp .tg-dates strong {
	color: var(--tg-text);
}

/* ---------- Experience Gift Ideas ---------- */

.tg-ideas {
	margin-bottom: 40px;
}

.tg-sp .tg-ideas .tg-section-title {
	margin: 0 0 14px;
	font-size: 22px;
}

.tg-ideas__tabs {
	display: flex;
	gap: 24px;
	margin-bottom: 18px;
	overflow-x: auto;
	border-bottom: 1px solid var(--tg-border);
	scrollbar-width: none;
}

.tg-ideas__tabs::-webkit-scrollbar {
	display: none;
}

/* Tabs that don't fit scroll sideways (swipe, mouse wheel, or drag); a fade shows on the side that has more
   (JS sets can-prev / can-next). */
.tg-ideas__scroller {
	position: relative;
	margin-bottom: 18px;
}

.tg-ideas__scroller .tg-ideas__tabs {
	margin-bottom: 0;
}

.tg-ideas__scroller.can-prev .tg-ideas__tabs,
.tg-ideas__scroller.can-next .tg-ideas__tabs {
	cursor: grab;
}

.tg-ideas__scroller .tg-ideas__tabs.is-dragging,
.tg-ideas__scroller .tg-ideas__tabs.is-dragging .tg-ideas__tab {
	cursor: grabbing;
	user-select: none;
}

.tg-ideas__scroller::before,
.tg-ideas__scroller::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 1px;
	z-index: 1;
	width: 40px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease;
}

.tg-ideas__scroller::before {
	left: 0;
	background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.tg-ideas__scroller::after {
	right: 0;
	background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
}

.tg-ideas__scroller.can-prev::before,
.tg-ideas__scroller.can-next::after {
	opacity: 1;
}


.tg-sp .tg-ideas__tab {
	flex: 0 0 auto;
	margin: 0 0 -1px;
	padding: 0 0 10px;
	border: 0;
	border-bottom: 2px solid transparent;
	border-radius: 0;
	background: none;
	color: var(--tg-muted);
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	white-space: nowrap;
}

.tg-sp button.tg-ideas__tab {
	cursor: pointer;
}

.tg-sp button.tg-ideas__tab:hover {
	color: var(--tg-text);
}

.tg-sp .tg-ideas__tab.is-active {
	border-bottom-color: var(--tg-text);
	color: var(--tg-text);
}

/* Keyboard focus: accent text + underline (an outline would be clipped by the scrolling row). */
.tg-sp button.tg-ideas__tab:focus-visible {
	outline: none;
	border-bottom-color: var(--tg-accent);
	color: var(--tg-accent);
}

.tg-ideas__grid[hidden] {
	display: none;
}

.tg-ideas__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	grid-auto-rows: minmax(110px, auto);
	gap: 10px;
}

.tg-sp .tg-ideas__card {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 110px;
	padding: 14px;
	border: 1px solid var(--tg-border);
	border-radius: 10px;
	background: #fff;
	color: var(--tg-text);
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	transition: box-shadow .2s;
}

.tg-sp .tg-ideas__card:hover,
.tg-sp .tg-ideas__card:focus-visible {
	box-shadow: 0 4px 20px rgba(12, 105, 134, .12);
	color: var(--tg-text);
}

.tg-sp .tg-ideas__card:focus-visible {
	outline: 2px solid var(--tg-accent);
	outline-offset: 2px;
}

.tg-sp .tg-ideas__card--lg {
	grid-row: span 2;
	min-height: 240px;
	padding: 16px;
	font-size: 17px;
	font-weight: 700;
}

.tg-ideas__arrow {
	color: var(--tg-accent);
}

/* Card with a photo (Appearance → Menus → item → Card image): photo fills the card, white text on a dark fade. */
.tg-sp .tg-ideas__card--img {
	position: relative;
	overflow: hidden;
	border-color: transparent;
	color: #fff;
}

.tg-sp .tg-ideas__card--img:hover,
.tg-sp .tg-ideas__card--img:focus-visible {
	color: #fff;
}

.tg-sp .tg-ideas__card--img .tg-ideas__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	transition: transform .4s ease;
}

.tg-sp .tg-ideas__card--img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(10, 20, 30, .72) 0%, rgba(10, 20, 30, .25) 45%, rgba(10, 20, 30, 0) 70%);
}

.tg-sp .tg-ideas__card--img:hover .tg-ideas__img {
	transform: scale(1.04);
}

.tg-sp .tg-ideas__card--img .tg-ideas__label {
	position: relative;
	z-index: 1;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.tg-sp .tg-ideas__card--img .tg-ideas__arrow {
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.tg-sp .tg-ideas__card--img .tg-ideas__img {
		transition: none;
	}
}

@media (max-width: 600px) {
	.tg-ideas__grid {
		grid-template-columns: 1fr 1fr;
	}

	.tg-sp .tg-ideas__card--lg {
		grid-column: 1 / -1;
		grid-row: auto;
		min-height: 140px;
	}
}

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

.tg-author {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	margin-bottom: 32px;
	padding: 24px;
	border: 1px solid var(--tg-border);
	border-radius: 12px;
	background: #fff;
}

.tg-sp .tg-author > img {
	flex-shrink: 0;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	object-fit: cover;
}

.tg-author__body {
	flex: 1;
	min-width: 200px;
}

.tg-sp .tg-author__label {
	margin: 0 0 5px;
	color: var(--tg-muted);
	font-size: 10.5px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tg-sp .tg-author__name {
	margin: 0 0 4px;
	color: var(--tg-text);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}

.tg-sp .tg-author__role {
	margin: 0 0 8px;
	color: var(--tg-muted);
	font-size: 12.5px;
	line-height: 1.3;
}

.tg-sp .tg-author__bio {
	margin: 0 0 10px;
	color: var(--tg-muted);
	font-size: 13.5px;
	line-height: 1.6;
}

.tg-author__socials {
	margin-bottom: 12px;
}

.tg-sp .tg-author__more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--tg-accent);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

.tg-sp .tg-author__more:hover {
	color: var(--tg-accent-hover);
}

/* ---------- Continue Reading ---------- */

.tg-sp .tg-related .tg-section-title {
	margin-top: 0;
}

.tg-related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
	gap: 14px;
}

.tg-card {
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid var(--tg-border);
	border-radius: 15px;
	background: #fff;
	transition: box-shadow .2s;
}

.tg-card:hover {
	box-shadow: 0 4px 20px rgba(12, 105, 134, .12);
}

.tg-sp .tg-card__link {
	display: block;
	height: 100%;
	padding: 18px;
	color: inherit;
	text-decoration: none;
}

.tg-card__img {
	display: block;
	margin-bottom: 14px;
	overflow: hidden;
	border-radius: 10px;
	background: var(--tg-light);
	aspect-ratio: 16 / 9;
}

.tg-sp .tg-card__img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tg-card__cat {
	color: var(--tg-accent);
	font-size: 10.5px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.tg-sp .tg-card__title {
	margin: 7px 0 0;
	color: var(--tg-text);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}

.tg-card__time {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 10px;
	color: var(--tg-muted);
	font-size: 11.5px;
	line-height: 1;
}

/* ---------- Reading progress line (added by JS to <body>, fixed to the top of the window) ---------- */

.tg-progress {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1000;
	height: 3px;
	pointer-events: none;
}

/* Below the WordPress admin bar when logged in. */
.admin-bar .tg-progress {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .tg-progress {
		top: 46px;
	}
}

.tg-progress__bar {
	width: 100%;
	height: 100%;
	background: #52b4cc; /* Tinggly cyan (logo, SHOP NOW pill) */
	transform: scaleX(0);
	transform-origin: 0 50%;
	will-change: transform;
}

/* ---------- Mobile contents + back to top ---------- */

.tg-mtoc-btn {
	display: none;
	position: fixed;
	bottom: 24px;
	left: 16px;
	z-index: 900;
	align-items: center;
	gap: 6px;
	height: 38px;
	padding: 0 16px;
	border: 1px solid #e1e5e5;
	border-radius: 8px;
	background: #fff;
	color: #171b22;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
	cursor: pointer;
}

@media (max-width: 1024px) {
	.tg-mtoc-btn {
		display: inline-flex;
	}
}

.tg-mtoc {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, .45);
}

.tg-mtoc[hidden] {
	display: none;
}

.tg-mtoc__panel {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	max-height: 60vh;
	padding: 18px 20px 34px;
	overflow-y: auto;
	border-radius: 16px 16px 0 0;
	background: #fff;
}

.tg-mtoc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
}

.tg-mtoc__head .tg-toc__label {
	margin: 0;
}

.tg-mtoc__close {
	display: inline-flex;
	padding: 8px;
	border: 0;
	background: none;
	color: #515159;
	cursor: pointer;
}

.tg-btt {
	display: flex;
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 900;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #0c6986;
	color: #fff;
	box-shadow: 0 4px 12px rgba(12, 105, 134, .3);
	cursor: pointer;
	opacity: 0;
	pointer-events: none;
	transform: translateY(10px);
	transition: opacity .2s, transform .2s;
}

.tg-btt.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: none;
}

.tg-btt:hover {
	opacity: .85;
}

@media (max-width: 767px) {
	.tg-btt {
		right: 16px;
	}
}

.tg-sp :focus-visible {
	outline: 2.5px solid #0c6986;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.tg-sp *,
	.tg-btt {
		transition: none !important;
	}
}
