/*
Theme Name: Greenfly Cases
Theme URI: https://greenfly.jp/
Description: Blocksy child theme for the Greenfly landing page and customer case studies.
Author: Media Work
Template: blocksy
Version: 1.0.0
Text Domain: greenfly-cases
*/

:root {
	--gf-navy: #03142f;
	--gf-navy-deep: #020b1e;
	--gf-blue: #0b3266;
	--gf-green: #9af000;
	--gf-green-dark: #65ad00;
	--gf-cyan: #6ddfd6;
	--gf-ink: #101b2d;
	--gf-muted: #5e6a7c;
	--gf-line: #dfe7ec;
	--gf-surface: #f3f8f8;
	--gf-white: #ffffff;
	--gf-shadow: 0 20px 55px rgba(3, 20, 47, 0.12);
	--gf-radius-lg: 28px;
	--gf-radius-md: 18px;
	--gf-container: 1160px;
}

html {
	scroll-behavior: smooth;
	overflow-x: clip;
}

body {
	margin: 0;
	background: var(--gf-white);
	color: var(--gf-ink);
	font-family: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans", "Yu Gothic", sans-serif;
	font-size: 16px;
	line-height: 1.8;
	overflow-x: clip;
}

button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

body.gf-menu-open {
	overflow: hidden;
}

body.error404 > .ct-container,
body.search > .ct-container,
body.archive:not(.greenfly-case-archive) > .ct-container {
	padding-top: 160px;
}

@media (max-width: 1199px) {
	body.error404 > .ct-container,
	body.search > .ct-container,
	body.archive:not(.greenfly-case-archive) > .ct-container {
		padding-top: 110px;
	}
}

* {
	box-sizing: border-box;
}

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

a {
	color: inherit;
	text-decoration: none;
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--gf-cyan);
	outline-offset: 4px;
}

.gf-container {
	width: min(calc(100% - 48px), var(--gf-container));
	margin-inline: auto;
}

.gf-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(2, 11, 30, 0.96);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(14px);
}

.admin-bar .gf-site-header {
	top: 32px;
}

.gf-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 78px;
	gap: 32px;
}

.gf-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--gf-green);
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.gf-brand__mark {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	color: var(--gf-green);
}

.gf-brand__mark svg {
	width: 100%;
	height: 100%;
}

.gf-brand__partner {
	margin-left: 4px;
	padding-left: 14px;
	border-left: 1px solid rgba(255, 255, 255, 0.35);
	color: rgba(255, 255, 255, 0.78);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	line-height: 1.3;
	text-transform: uppercase;
}

.gf-site-nav {
	display: flex;
	align-items: center;
	gap: 34px;
}

.gf-site-nav a {
	position: relative;
	color: rgba(255, 255, 255, 0.85);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.gf-site-nav a:not(.gf-button)::after {
	position: absolute;
	right: 0;
	bottom: -8px;
	left: 0;
	height: 2px;
	background: var(--gf-green);
	content: "";
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 180ms ease;
}

.gf-site-nav a:hover::after,
.gf-site-nav a[aria-current="page"]::after {
	transform: scaleX(1);
}

.gf-menu-toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 12px;
	background: transparent;
	color: var(--gf-white);
	cursor: pointer;
}

.gf-menu-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	margin: 5px 0;
	background: currentColor;
	transition: transform 180ms ease, opacity 180ms ease;
}

.gf-menu-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.gf-menu-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.gf-menu-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.gf-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 52px;
	padding: 12px 26px;
	border: 0;
	border-radius: 999px;
	background: var(--gf-green);
	box-shadow: 0 12px 30px rgba(154, 240, 0, 0.22);
	color: var(--gf-navy-deep) !important;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 0.03em;
	transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.gf-button:hover {
	background: #b4ff29;
	box-shadow: 0 16px 36px rgba(154, 240, 0, 0.32);
	transform: translateY(-2px);
}

.gf-button__arrow {
	font-size: 18px;
	line-height: 1;
}

.gf-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 22px;
	color: var(--gf-green);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.gf-eyebrow::before {
	width: 28px;
	height: 2px;
	background: currentColor;
	content: "";
}

.gf-home-hero {
	position: relative;
	display: grid;
	align-items: center;
	min-height: min(720px, calc(100svh - 78px));
	padding: 100px 0;
	background:
		linear-gradient(90deg, rgba(2, 11, 30, 0.98) 0%, rgba(3, 20, 47, 0.87) 46%, rgba(3, 20, 47, 0.18) 100%),
		url("assets/images/greenfly-hero.jpg") center / cover no-repeat;
	color: var(--gf-white);
}

.gf-home-hero::after {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 180px;
	background: linear-gradient(180deg, transparent, rgba(3, 20, 47, 0.75));
	content: "";
	pointer-events: none;
}

.gf-home-hero__content {
	position: relative;
	z-index: 1;
	max-width: 680px;
}

.gf-home-hero h1 {
	max-width: 650px;
	margin: 0;
	color: var(--gf-white);
	font-size: clamp(42px, 5.4vw, 78px);
	font-weight: 800;
	letter-spacing: -0.055em;
	line-height: 1.14;
}

.gf-home-hero__lead {
	max-width: 600px;
	margin: 30px 0 38px;
	color: rgba(255, 255, 255, 0.78);
	font-size: clamp(16px, 1.5vw, 20px);
	line-height: 1.9;
}

.gf-section {
	padding: 110px 0;
}

.gf-section--soft {
	background:
		radial-gradient(circle at 18% 18%, rgba(109, 223, 214, 0.2), transparent 28%),
		linear-gradient(135deg, #f8fbfa 0%, #edf8f8 48%, #f4f8ff 100%);
}

.gf-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 46px;
}

.gf-section-heading__copy {
	max-width: 690px;
}

.gf-section-heading .gf-eyebrow {
	margin-bottom: 14px;
	color: var(--gf-green-dark);
}

.gf-section-heading h2 {
	margin: 0;
	color: var(--gf-ink);
	font-size: clamp(34px, 4vw, 54px);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.25;
}

.gf-section-heading p {
	margin: 16px 0 0;
	color: var(--gf-muted);
}

.gf-case-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.gf-case-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(3, 20, 47, 0.08);
	border-radius: var(--gf-radius-md);
	background: var(--gf-white);
	box-shadow: 0 12px 35px rgba(3, 20, 47, 0.07);
	transition: box-shadow 220ms ease, transform 220ms ease;
}

.gf-case-card:hover {
	box-shadow: var(--gf-shadow);
	transform: translateY(-7px);
}

.gf-case-card__link {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	font-size: 14px;
	line-height: 1.5;
}

.gf-case-card__link:focus-visible {
	outline-offset: -4px;
}

.gf-case-card__media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, var(--gf-navy), var(--gf-blue));
}

.gf-case-card__media::after {
	position: absolute;
	inset: auto 0 0;
	height: 48%;
	background: linear-gradient(transparent, rgba(2, 11, 30, 0.55));
	content: "";
}

.gf-case-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms ease;
}

.gf-case-card:hover .gf-case-card__media img {
	transform: scale(1.045);
}

.gf-case-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 290px;
	padding: 28px;
}

.gf-case-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin-bottom: 13px;
}

.gf-case-card__company {
	color: var(--gf-green-dark);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.gf-case-card__terms {
	color: var(--gf-muted);
	font-size: 11px;
}

.gf-case-card__date {
	flex-basis: 100%;
	color: var(--gf-muted);
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

.gf-case-card h2,
.gf-case-card h3 {
	margin: 0;
	color: var(--gf-ink);
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.5;
}

.gf-case-card h2,
.gf-case-card h3 {
	transition: color 160ms ease;
}

.gf-case-card__link:hover h2,
.gf-case-card__link:hover h3 {
	color: var(--gf-green-dark);
}

.gf-case-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 16px 0 22px;
	color: var(--gf-muted);
	font-size: 14px;
	line-height: 1.8;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.gf-case-card__more {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin-top: auto;
	color: var(--gf-navy);
	font-size: 13px;
	font-weight: 800;
}

.gf-case-card__more span {
	color: var(--gf-green-dark);
	font-size: 18px;
}

.gf-archive-hero {
	position: relative;
	overflow: hidden;
	padding: 104px 0 96px;
	background:
		linear-gradient(120deg, rgba(2, 11, 30, 0.98), rgba(3, 20, 47, 0.9) 54%, rgba(11, 50, 102, 0.72)),
		url("assets/images/greenfly-content.jpg") center 44% / cover no-repeat;
	color: var(--gf-white);
}

.post-type-archive-case_study .gf-archive-hero,
.greenfly-case-archive .gf-archive-hero {
	padding-top: 150px;
}

.gf-archive-hero::after {
	position: absolute;
	right: -140px;
	top: -220px;
	width: 560px;
	height: 560px;
	border: 1px solid rgba(154, 240, 0, 0.28);
	border-radius: 50%;
	box-shadow: 0 0 0 72px rgba(154, 240, 0, 0.035), 0 0 0 145px rgba(109, 223, 214, 0.025);
	content: "";
}

.gf-archive-hero__content {
	position: relative;
	z-index: 1;
	max-width: 1040px;
}

.gf-archive-hero h1 {
	margin: 0;
	color: var(--gf-white);
	font-size: clamp(44px, 6vw, 76px);
	font-weight: 800;
	letter-spacing: -0.055em;
	line-height: 1.15;
}

.gf-archive-hero__description {
	max-width: 900px;
	margin: 22px 0 0;
	color: rgba(255, 255, 255, 0.76);
	font-size: 17px;
}

.gf-story-tools {
	display: grid;
	grid-template-columns: minmax(220px, 0.82fr) minmax(320px, 1.4fr) auto;
	align-items: end;
	gap: 16px;
	max-width: 940px;
	margin-top: 42px;
	padding: 20px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 18px;
	background: rgba(2, 11, 30, 0.52);
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
	backdrop-filter: blur(12px);
}

.gf-story-tools__field {
	display: grid;
	gap: 7px;
	min-width: 0;
	margin: 0;
}

.gf-story-tools__field > span {
	color: rgba(255, 255, 255, 0.72);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.gf-story-tools select,
.gf-story-tools input {
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 11px;
	background: var(--gf-white);
	color: var(--gf-ink);
	font-size: 14px;
}

.gf-story-tools select {
	padding-right: 48px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23101b2d' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 16px center;
	background-repeat: no-repeat;
	background-size: 18px 18px;
	appearance: none;
}

.gf-story-tools select:focus,
.gf-story-tools input:focus {
	border-color: var(--gf-green);
	background-color: #f5f7f6;
	color: var(--gf-ink);
	outline: 3px solid rgba(154, 240, 0, 0.24);
}

.gf-story-tools button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	height: 50px;
	padding: 0 28px;
	border: 0;
	border-radius: 11px;
	background: var(--gf-green);
	color: var(--gf-navy-deep);
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	transition: background 160ms ease, transform 160ms ease;
}

.gf-story-tools button svg {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

.gf-story-tools button:hover {
	background: #b4ff1f;
	color: var(--gf-navy-deep);
	transform: none;
}

.gf-archive-content {
	padding: 84px 0 112px;
}

.gf-story-results {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 30px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--gf-line);
}

.gf-story-results p {
	margin: 0;
	color: var(--gf-muted);
	font-size: 14px;
}

.gf-story-results__summary {
	display: grid;
	gap: 10px;
}

.gf-story-results__conditions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	margin: 0;
}

.gf-story-results__conditions > div {
	display: inline-flex;
	align-items: center;
	overflow: hidden;
	border: 1px solid var(--gf-line);
	border-radius: 999px;
	background: var(--gf-white);
}

.gf-story-results__conditions dt,
.gf-story-results__conditions dd {
	margin: 0;
	padding: 5px 11px;
	font-size: 12px;
	line-height: 1.5;
}

.gf-story-results__conditions dt {
	background: var(--gf-navy);
	color: var(--gf-white);
	font-weight: 700;
}

.gf-story-results__conditions dd {
	color: var(--gf-ink);
	font-weight: 600;
}

.gf-story-results strong {
	color: var(--gf-ink);
}

.gf-story-results a,
.gf-empty-state a {
	color: var(--gf-green-dark);
	font-size: 13px;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.gf-empty-state {
	padding: 70px 32px;
	border: 1px solid var(--gf-line);
	border-radius: var(--gf-radius-md);
	background: var(--gf-surface);
	text-align: center;
}

.gf-pagination {
	margin-top: 56px;
}

.gf-pagination .nav-links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.gf-pagination .page-numbers {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--gf-line);
	border-radius: 12px;
	background: var(--gf-white);
	color: var(--gf-navy);
	font-weight: 700;
}

.gf-pagination .page-numbers.current,
.gf-pagination .page-numbers:hover {
	border-color: var(--gf-green);
	background: var(--gf-green);
}

.gf-single-hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: 620px;
	overflow: hidden;
	background: var(--gf-navy-deep);
	color: var(--gf-white);
}

.gf-single-hero__media,
.gf-single-hero__media::after {
	position: absolute;
	inset: 0;
}

.gf-single-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gf-single-hero__media::after {
	background:
		linear-gradient(90deg, rgba(2, 11, 30, 0.92) 0%, rgba(2, 11, 30, 0.62) 58%, rgba(2, 11, 30, 0.28) 100%),
		linear-gradient(0deg, rgba(2, 11, 30, 0.93) 0%, transparent 62%);
	content: "";
}

.gf-single-hero__fallback {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 75% 30%, rgba(109, 223, 214, 0.28), transparent 28%),
		linear-gradient(135deg, var(--gf-navy-deep), var(--gf-blue));
}

.gf-single-hero__content {
	position: relative;
	z-index: 2;
	max-width: 940px;
	padding-top: 120px;
	padding-bottom: 70px;
}

.single-case_study .gf-single-hero__content,
.single-post .gf-single-hero__content {
	padding-top: 160px;
}

.gf-single-hero__back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 34px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 13px;
	font-weight: 700;
}

.gf-single-hero__back:hover {
	color: var(--gf-green);
}

.gf-single-hero__company {
	margin: 0 0 14px;
	color: var(--gf-green);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.gf-single-hero h1 {
	max-width: 900px;
	margin: 0;
	color: var(--gf-white);
	font-size: clamp(36px, 5vw, 48px);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1.25;
}

.gf-single-hero__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 28px;
}

.gf-single-hero__date {
	padding: 7px 13px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.82);
	font-size: 11px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.04em;
}

.gf-single-hero__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.gf-single-hero__terms span {
	padding: 7px 13px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.78);
	font-size: 11px;
	font-weight: 700;
}

.gf-single-main {
	padding: 84px 0 110px;
}

.gf-single-layout {
	display: grid;
	grid-template-columns: minmax(0, 750px) minmax(280px, 340px);
	justify-content: space-between;
	gap: 60px;
}

.gf-entry-intro {
	margin: 0 0 42px;
	padding: 30px 34px;
	border-left: 5px solid var(--gf-green);
	border-radius: 0 var(--gf-radius-md) var(--gf-radius-md) 0;
	background: linear-gradient(135deg, #f2f9f6, #eff9fa);
}

.gf-entry-intro p {
	margin: 0;
	color: var(--gf-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.8;
}

.gf-entry-content {
	color: #28364a;
	font-size: 17px;
	line-height: 2;
}

.gf-entry-content > * {
	max-width: 760px;
}

.gf-entry-content > * + * {
	margin-top: 1.5em;
}

.gf-entry-content h2,
.gf-entry-content h3,
.gf-entry-content h4 {
	color: var(--gf-ink);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.45;
}

.gf-entry-content h2 {
	margin-top: 2.6em;
	padding-bottom: 14px;
	border-bottom: 2px solid var(--gf-line);
	font-size: clamp(27px, 3vw, 36px);
}

.gf-entry-content h2::after {
	display: block;
	width: 62px;
	height: 3px;
	margin-bottom: -17px;
	background: var(--gf-green);
	content: "";
}

.gf-entry-content h3 {
	margin-top: 2.2em;
	font-size: 24px;
}

.gf-entry-content img {
	width: auto;
	border-radius: 16px;
}

.gf-entry-content a:has(img) {
	display: inline-block;
	cursor: zoom-in;
}

.gf-entry-content a:not(:has(img)) {
	color: #276f77;
	text-decoration: underline;
	text-decoration-color: rgba(39, 111, 119, 0.35);
	text-underline-offset: 4px;
}

.gf-entry-content blockquote {
	margin-inline: 0;
	padding: 30px 34px;
	border: 0;
	border-radius: var(--gf-radius-md);
	background: var(--gf-navy);
	color: var(--gf-white);
	font-size: 20px;
	font-weight: 700;
}

.gf-entry-content ul,
.gf-entry-content ol {
	padding-left: 1.5em;
}

.gf-single-aside {
	position: sticky;
	top: 118px;
	align-self: start;
	min-width: 0;
	padding: 26px;
	border: 1px solid var(--gf-line);
	border-radius: var(--gf-radius-md);
	background: var(--gf-white);
	box-shadow: 0 12px 35px rgba(3, 20, 47, 0.06);
}

.gf-single-aside__label {
	margin: 0 0 16px;
	color: var(--gf-muted);
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.gf-single-aside__company {
	margin: 0;
	color: var(--gf-ink);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.5;
}

.gf-single-aside__categories ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gf-single-aside__categories li {
	margin: 0;
}

.gf-single-aside__categories a {
	display: inline-flex;
	padding: 7px 11px;
	border-radius: 999px;
	background: var(--gf-surface);
	color: var(--gf-ink);
	font-size: 12px;
	font-weight: 700;
	transition: background 160ms ease, color 160ms ease;
}

.gf-single-aside__categories a:hover {
	background: var(--gf-green);
	color: var(--gf-navy-deep);
}

.gf-popular-stories {
	margin-top: 30px;
	padding-top: 27px;
	border-top: 1px solid var(--gf-line);
}

.gf-popular-stories h2 {
	margin: 0 0 17px;
	color: var(--gf-ink);
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.025em;
}

.gf-popular-stories ol {
	display: grid;
	gap: 15px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gf-popular-stories li {
	margin: 0;
}

.gf-popular-stories a {
	display: grid;
	grid-template-columns: 24px 70px minmax(0, 1fr);
	align-items: center;
	gap: 9px;
	color: var(--gf-ink);
}

.gf-popular-stories__rank {
	color: var(--gf-green-dark);
	font-size: 18px;
	font-weight: 900;
	font-variant-numeric: tabular-nums;
}

.gf-popular-stories__media {
	display: block;
	overflow: hidden;
	width: 70px;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	background: linear-gradient(135deg, var(--gf-navy), var(--gf-blue));
}

.gf-popular-stories__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 220ms ease;
}

.gf-popular-stories a:hover .gf-popular-stories__media img {
	transform: scale(1.06);
}

.gf-popular-stories__body {
	display: grid;
	gap: 5px;
	min-width: 0;
}

.gf-popular-stories__body strong {
	display: -webkit-box;
	overflow: hidden;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.55;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.gf-popular-stories__body time {
	color: var(--gf-muted);
	font-size: 10px;
	font-variant-numeric: tabular-nums;
}

.gf-story-share {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 58px;
	padding: 25px 0;
	border-top: 1px solid var(--gf-line);
	border-bottom: 1px solid var(--gf-line);
}

.gf-story-share > p {
	margin: 0;
	color: var(--gf-ink);
	font-size: 14px;
	font-weight: 800;
}

.gf-story-share__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 9px;
}

.gf-story-share__button {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	color: var(--gf-white);
	font-size: 15px;
	font-weight: 900;
	line-height: 1;
	transition: opacity 160ms ease, transform 160ms ease;
}

.gf-story-share__button:hover {
	color: var(--gf-white);
	opacity: 0.8;
	transform: translateY(-2px);
}

.gf-story-share__button--x {
	background: #111111;
}

.gf-story-share__button--facebook {
	background: #1877f2;
	font-family: Arial, sans-serif;
	font-size: 22px;
}

.gf-story-share__button--native {
	display: none;
	padding: 0;
	border: 0;
	background: #1877f2;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.gf-story-share__button--native svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.gf-story-share__mobile-help {
	display: none;
	flex-basis: 100%;
	margin-top: 3px;
	color: var(--gf-muted);
	font-size: 11px;
	line-height: 1.6;
}

.gf-story-share__mobile-help.is-error {
	color: #b22543;
}

/*
 * On touch devices and narrow viewports, hand sharing off to the operating
 * system. iOS decides which installed share extensions are available; keeping
 * the Facebook web link visible here can be intercepted by Universal Links and
 * open only the Facebook home screen instead of its composer.
 */
@media (max-width: 900px), (hover: none), (pointer: coarse) {
	html.gf-web-share-supported .gf-story-share__button--facebook-web {
		display: none;
	}

	html.gf-web-share-supported .gf-story-share__button--native {
		display: grid;
	}

	html.gf-web-share-supported .gf-story-share__mobile-help {
		display: block;
	}
}

.gf-story-share__button--linkedin {
	background: #0a66c2;
	font-family: Arial, sans-serif;
}

.gf-story-like {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 42px;
	padding: 0 14px;
	border: 1px solid #e7b9c2;
	border-radius: 999px;
	background: #fff6f8;
	color: #b22543;
	font-size: 12px;
	font-weight: 800;
	cursor: pointer;
	transition: background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.gf-story-like:hover:not(:disabled) {
	background: #ffe6eb;
	transform: translateY(-2px);
}

.gf-story-like.is-pending {
	opacity: 0.55;
	pointer-events: none;
}

.gf-story-like.is-liked,
.gf-story-like:disabled {
	border-color: #c93454;
	background: #c93454;
	color: var(--gf-white);
	cursor: default;
	opacity: 1;
}

.gf-story-like__count {
	min-width: 1ch;
	font-variant-numeric: tabular-nums;
}

.gf-single-aside__divider {
	margin: 24px 0;
	border: 0;
	border-top: 1px solid var(--gf-line);
}

.gf-single-aside__terms {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.gf-single-aside__terms span {
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--gf-surface);
	color: var(--gf-muted);
	font-size: 11px;
	font-weight: 700;
}

.gf-case-navigation {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 72px;
	padding-top: 34px;
	border-top: 1px solid var(--gf-line);
}

.gf-case-navigation a {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 20px;
	border: 1px solid var(--gf-line);
	border-radius: 14px;
	transition: border-color 160ms ease, transform 160ms ease;
}

.gf-case-navigation a:hover {
	border-color: var(--gf-green-dark);
	transform: translateY(-2px);
}

.gf-case-navigation__next {
	text-align: right;
}

.gf-case-navigation small {
	color: var(--gf-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.gf-case-navigation strong {
	font-size: 14px;
	line-height: 1.55;
}

.gf-related {
	padding: 96px 0 110px;
	background: var(--gf-surface);
}

.gf-related > .gf-container > h2 {
	margin: 0 0 36px;
	font-size: clamp(30px, 3.4vw, 44px);
	font-weight: 800;
	letter-spacing: -0.04em;
}

.gf-site-footer {
	padding: 58px 0 26px;
	background: var(--gf-navy-deep);
	color: rgba(255, 255, 255, 0.7);
}

.gf-site-footer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
	padding-bottom: 38px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.gf-site-footer__nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 24px;
}

.gf-site-footer__nav a {
	font-size: 13px;
	font-weight: 700;
}

.gf-site-footer__nav a:hover {
	color: var(--gf-green);
}

.gf-site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 25px;
	font-size: 11px;
}

.gf-lightbox {
	width: min(94vw, 1180px);
	max-width: none;
	max-height: 92vh;
	padding: 52px 18px 18px;
	border: 0;
	border-radius: 18px;
	background: rgba(2, 11, 30, 0.96);
	box-shadow: 0 28px 100px rgba(0, 0, 0, 0.5);
}

.gf-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.82);
	backdrop-filter: blur(5px);
}

.gf-lightbox img {
	width: 100%;
	max-height: calc(92vh - 70px);
	object-fit: contain;
}

.gf-lightbox__close {
	position: absolute;
	top: 9px;
	right: 12px;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	background: transparent;
	color: var(--gf-white);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

@media (max-width: 1000px) {
	.gf-case-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gf-single-layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 48px;
	}

	.gf-single-aside {
		position: static;
		width: 100%;
	}

	.gf-popular-stories ol {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 782px) {
	.admin-bar .gf-site-header {
		top: 46px;
	}
}

@media (max-width: 760px) {
	.gf-container {
		width: min(calc(100% - 36px), var(--gf-container));
	}

	.gf-site-header__inner {
		min-height: 68px;
	}

	.gf-brand {
		font-size: 20px;
	}

	.gf-brand__partner {
		display: none;
	}

	.gf-menu-toggle {
		display: block;
	}

	.gf-site-nav {
		position: fixed;
		top: 68px;
		right: 0;
		left: 0;
		display: flex;
		align-items: stretch;
		flex-direction: column;
		gap: 0;
		padding: 16px 18px 28px;
		background: rgba(2, 11, 30, 0.99);
		box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
		opacity: 0;
		pointer-events: none;
		transform: translateY(-12px);
		transition: opacity 180ms ease, transform 180ms ease;
	}

	.admin-bar .gf-site-nav {
		top: 114px;
	}

	.gf-site-nav[data-open="true"] {
		opacity: 1;
		pointer-events: auto;
		transform: translateY(0);
	}

	.gf-site-nav a {
		padding: 14px 10px;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		font-size: 15px;
	}

	.gf-site-nav a::after {
		display: none;
	}

	.gf-site-nav .gf-button {
		margin-top: 16px;
		border-bottom: 0;
	}

	.gf-home-hero {
		min-height: 650px;
		padding: 72px 0 80px;
		background:
			linear-gradient(180deg, rgba(2, 11, 30, 0.7) 0%, rgba(2, 11, 30, 0.94) 66%, rgba(2, 11, 30, 1) 100%),
			url("assets/images/greenfly-hero.jpg") 62% center / cover no-repeat;
	}

	.gf-home-hero h1 {
		font-size: clamp(38px, 11vw, 56px);
	}

	.gf-home-hero__lead {
		font-size: 16px;
	}

	.gf-section {
		padding: 78px 0;
	}

	.gf-section-heading {
		align-items: flex-start;
		flex-direction: column;
		margin-bottom: 32px;
	}

	.gf-case-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.gf-archive-hero {
		padding: 78px 0 72px;
	}

	.gf-story-tools {
		grid-template-columns: minmax(0, 1fr);
		padding: 16px;
	}

	.gf-story-tools button {
		width: 100%;
	}

	.gf-story-results {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.post-type-archive-case_study .gf-archive-hero,
	.greenfly-case-archive .gf-archive-hero {
		padding-top: 118px;
	}

	.gf-archive-content {
		padding: 60px 0 80px;
	}

	.gf-single-hero {
		min-height: 540px;
	}

	.gf-single-hero__content {
		padding-top: 96px;
		padding-bottom: 46px;
	}

	.single-case_study .gf-single-hero__content,
	.single-post .gf-single-hero__content {
		padding-top: 118px;
	}

	.gf-single-main {
		padding: 60px 0 78px;
	}

	.gf-single-layout {
		min-width: 0;
	}

	.gf-single-layout > * {
		min-width: 0;
	}

	html.gf-motion-enabled .gf-single-aside[data-gf-reveal="from-right"] {
		--gf-reveal-x: 0px;
		--gf-reveal-y: 22px;
	}

	.gf-entry-content {
		font-size: 16px;
	}

	.gf-entry-intro {
		padding: 24px;
	}

	.gf-entry-intro p {
		font-size: 16px;
	}

	.gf-case-navigation {
		grid-template-columns: minmax(0, 1fr);
	}

	.gf-case-navigation__next {
		text-align: left;
	}

	.gf-story-share {
		align-items: flex-start;
		flex-direction: column;
	}

	.gf-popular-stories ol {
		grid-template-columns: minmax(0, 1fr);
	}

	.gf-site-footer__top,
	.gf-site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.gf-related {
		padding: 72px 0 82px;
	}
}

@media (max-width: 480px) {
	.gf-container {
		width: min(calc(100% - 28px), var(--gf-container));
	}

	.gf-home-hero {
		min-height: 620px;
	}

	.gf-case-card__body {
		padding: 23px;
	}

	.gf-entry-content h2 {
		font-size: 26px;
	}

	.gf-story-share__actions {
		width: 100%;
	}

	.gf-story-like {
		margin-left: 2px;
	}
}

/* Subtle, one-time content reveals inspired by the NZR motion system. */
html.gf-motion-enabled [data-gf-reveal] {
	--gf-reveal-x: 0px;
	--gf-reveal-y: 22px;
	opacity: 0;
	translate: var(--gf-reveal-x) var(--gf-reveal-y);
	will-change: opacity, translate;
}

html.gf-motion-enabled [data-gf-reveal="from-right"] {
	--gf-reveal-x: 34px;
	--gf-reveal-y: 0px;
}

html.gf-motion-enabled [data-gf-reveal="from-left"] {
	--gf-reveal-x: -34px;
	--gf-reveal-y: 0px;
}

html.gf-motion-enabled [data-gf-reveal="fade"] {
	--gf-reveal-x: 0px;
	--gf-reveal-y: 0px;
}

html.gf-motion-enabled [data-gf-reveal].is-revealed {
	animation: gf-content-reveal 860ms cubic-bezier(0.16, 1, 0.3, 1) var(--gf-reveal-delay, 0ms) forwards;
}

@keyframes gf-content-reveal {
	to {
		opacity: 1;
		translate: 0 0;
		will-change: auto;
	}
}

@media (max-width: 760px) {
	html.gf-motion-enabled [data-gf-reveal] {
		--gf-reveal-y: 18px;
	}

	html.gf-motion-enabled [data-gf-reveal="from-right"] {
		--gf-reveal-x: 22px;
		--gf-reveal-y: 0px;
	}

	html.gf-motion-enabled [data-gf-reveal="from-left"] {
		--gf-reveal-x: -22px;
		--gf-reveal-y: 0px;
	}
}

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

	html.gf-motion-enabled [data-gf-reveal],
	html.gf-motion-enabled [data-gf-reveal].is-revealed {
		opacity: 1 !important;
		translate: 0 0 !important;
		animation: none !important;
		will-change: auto;
	}

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