/* ========================================================================
   GlycemicLife — Design System v2
   Modern nutrition/food discovery aesthetic. Navy + white + status pills.
   ======================================================================== */

:root {
	--navy-900: #1a1310;
	--navy-800: #251b15;
	--navy-700: #3a281c;
	--navy-600: #5a3b26;
	--navy-500: #7d5133;

	--brand-500: #ff8a3d;
	--brand-600: #f2661e;
	--brand-700: #d9520d;
	--brand-100: #ffe4d1;

	--green-500: #22c55e;
	--green-100: #dcfce7;
	--green-700: #15803d;

	--amber-500: #f59e0b;
	--amber-100: #fef3c7;
	--amber-700: #b45309;

	--red-500: #ef4444;
	--red-100: #fee2e2;
	--red-700: #b91c1c;

	--bg:        #f6f8fb;
	--surface:   #ffffff;
	--surface-2: #f1f4f9;
	--text:      #0f172a;
	--muted:     #64748b;
	--muted-2:   #94a3b8;
	--border:    #e2e8f0;
	--border-strong: #cbd5e1;

	--radius-sm: 8px;
	--radius:    12px;
	--radius-lg: 20px;
	--radius-xl: 28px;

	--shadow-sm: 0 1px 2px rgba(15,23,42,.06);
	--shadow:    0 4px 14px rgba(15,23,42,.08);
	--shadow-lg: 0 12px 40px rgba(15,23,42,.10);

	--container: 1200px;
	--content:   760px;

	--font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; transition: color .15s; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4, h5 {
	line-height: 1.2; font-weight: 800; color: var(--navy-900);
	margin: 1.5em 0 0.6em; letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.1rem, 3.2vw + 1rem, 3.4rem); }
h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.1rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.4em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }
blockquote {
	border-left: 4px solid var(--navy-800);
	padding: 0.4em 0 0.4em 1.25em;
	margin: 1.6em 0; color: #334155;
	background: var(--surface-2);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
code, kbd, samp {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .9em; background: var(--surface-2);
	padding: 0.15em 0.4em; border-radius: 4px;
}

.screen-reader-text {
	position: absolute !important;
	clip: rect(1px,1px,1px,1px);
	width: 1px; height: 1px; overflow: hidden;
	word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--navy-900); color:#fff; padding: .6em 1em; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--content { max-width: var(--content); }

/* Header */
.site-header {
	background: var(--navy-900);
	color: #fff;
	position: sticky; top: 0; z-index: 50;
	box-shadow: 0 1px 0 rgba(255,255,255,.05);
}
.site-header__inner {
	display: flex; align-items: center;
	padding: 14px 24px; max-width: var(--container); margin: 0 auto; gap: 24px;
}
.site-branding a, .site-branding .site-title {
	display: inline-flex; align-items: center; gap: 10px;
	color: #fff; font-weight: 800; letter-spacing: -.02em; font-size: 1.2rem;
	text-decoration: none;
}
.site-logo__img {
	width: 38px; height: 38px; border-radius: 10px; object-fit: contain;
}
.site-branding .site-title__text em {
	font-style: normal; color: var(--brand-500); font-weight: 700;
}
.site-header__panel {
	display: flex; align-items: center; justify-content: space-between;
	flex: 1; gap: 24px; min-width: 0;
}
.primary-nav__list {
	display: flex; flex-wrap: nowrap; gap: 4px; margin: 0; padding: 0; list-style: none;
}
.primary-nav__list a {
	color: rgba(255,255,255,.82);
	padding: 8px 14px; border-radius: 8px;
	text-decoration: none; font-size: .95rem; font-weight: 500;
	transition: background .15s, color .15s;
}
.primary-nav__list a:hover,
.primary-nav__list .current-menu-item > a,
.primary-nav__list .current_page_item > a {
	background: rgba(255,255,255,.08); color: #fff;
}
.header-cta {
	background: linear-gradient(135deg, var(--brand-500), var(--brand-600));
	color: #fff !important;
	padding: 9px 18px; border-radius: 999px;
	font-weight: 700; font-size: .92rem;
	text-decoration: none; white-space: nowrap;
	transition: transform .1s, box-shadow .15s;
	box-shadow: 0 6px 16px rgba(242,102,30,.35);
}
.header-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(242,102,30,.45); color:#fff !important;}

.header-actions {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: nowrap;
	flex-shrink: 0;
}

/* Hamburger toggle — hidden on desktop, shown + wired up below the breakpoint. */
.nav-toggle {
	display: none;
	background: none; border: 0; cursor: pointer;
	width: 40px; height: 40px; border-radius: 8px;
	align-items: center; justify-content: center;
	margin-left: auto;
	flex-shrink: 0;
}
.nav-toggle:hover { background: rgba(255,255,255,.08); }
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	display: block;
	width: 20px; height: 2px;
	background: #fff; border-radius: 2px;
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before,
.nav-toggle__bar::after { content: ''; position: absolute; left: 0; transition: transform .2s; }
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after  { top: 6px; }
.site-header.is-nav-open .nav-toggle__bar { background: transparent; }
.site-header.is-nav-open .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.site-header.is-nav-open .nav-toggle__bar::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 1240px) {
	.nav-toggle { display: inline-flex; }
	.site-header__inner { flex-wrap: wrap; padding: 12px 16px; }
	.site-header__panel {
		display: none;
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
	}
	.site-header.is-nav-open .site-header__panel { display: flex; }
	.primary-nav__list {
		flex-direction: column; flex-wrap: nowrap; gap: 2px;
		padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1);
	}
	.primary-nav__list a { display: block; padding: 12px 10px; }
	.header-actions {
		flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 10px;
		padding: 10px 0 6px; border-top: 1px solid rgba(255,255,255,.1);
	}
	.header-cta { text-align: center; }
}


/* Hero */
.hero {
	background:
		radial-gradient(1200px 500px at 15% -10%, rgba(242,102,30,.28), transparent 60%),
		radial-gradient(1000px 400px at 90% 10%, rgba(255,138,61,.22), transparent 60%),
		linear-gradient(180deg, var(--navy-900), var(--navy-800));
	color: #fff;
	padding: 72px 0 60px;
	position: relative; overflow: hidden;
}
.hero__inner { max-width: 880px; margin: 0 auto; text-align: center; padding: 0 24px; }
.hero__eyebrow {
	display: inline-block;
	background: rgba(242,102,30,.18);
	color: #ffb37a;
	padding: 6px 14px; border-radius: 999px;
	font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	margin-bottom: 20px;
}
.hero__title {
	color: #fff; margin: 0 0 18px;
	font-size: clamp(2.2rem, 4vw + 1rem, 3.8rem); line-height: 1.05;
}
.hero__title em { color: var(--brand-500); font-style: normal; }
.hero__sub {
	color: rgba(255,255,255,.82); font-size: 1.15rem; max-width: 640px;
	margin: 0 auto 32px;
}
.hero-search {
	max-width: 640px; margin: 0 auto;
	background: #fff; border-radius: 999px; padding: 6px 6px 6px 20px;
	display: flex; align-items: center; gap: 8px;
	box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.hero-search__icon { color: var(--muted); flex-shrink: 0; }
.hero-search__input {
	flex: 1; border: 0; outline: none; background: transparent;
	font-size: 1rem; color: var(--text); font-family: inherit;
	padding: 14px 8px;
}
.hero-search__btn {
	background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); color: #fff; border: 0;
	padding: 12px 28px; border-radius: 999px; font-weight: 700; font-size: .95rem;
	cursor: pointer; transition: transform .1s, box-shadow .15s;
	font-family: inherit;
	box-shadow: 0 6px 16px rgba(242,102,30,.35);
}
.hero-search__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(242,102,30,.45); }
.hero-tags {
	display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
	margin-top: 22px;
}
.hero-tag {
	background: rgba(255,255,255,.10); color: rgba(255,255,255,.85);
	padding: 6px 14px; border-radius: 999px;
	font-size: .82rem; font-weight: 500;
	text-decoration: none; transition: background .15s;
	border: 1px solid rgba(255,255,255,.10);
}
.hero-tag:hover { background: rgba(255,255,255,.18); color: #fff; }
@media (max-width: 640px) {
	.hero { padding: 48px 0 40px; }
	.hero-search { padding: 4px 4px 4px 14px; }
	.hero-search__btn { padding: 10px 18px; font-size: .88rem; }
}

/* Buttons */
.btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 22px; border-radius: 10px;
	font-weight: 700; font-size: .95rem; text-decoration: none;
	border: 2px solid transparent; cursor: pointer;
	transition: transform .1s, background .15s, box-shadow .15s;
	font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); color: #fff; border-color: var(--brand-600); box-shadow: 0 6px 16px rgba(242,102,30,.3); }
.btn--primary:hover { background: linear-gradient(135deg, var(--brand-600), var(--brand-700)); color:#fff; }
.btn--accent { background: var(--brand-700); color: #fff; border-color: var(--brand-700); }
.btn--accent:hover { background: #b8430c; color: #fff; }
.btn--ghost { background: transparent; color: var(--navy-900); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-2); }

/* Sections */
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section__head {
	display: flex; align-items: end; justify-content: space-between;
	gap: 20px; margin-bottom: 32px;
}
.section__title { margin: 0; font-size: clamp(1.6rem, 1.5vw + 1rem, 2.2rem); }
.section__sub { color: var(--muted); margin: 6px 0 0; font-size: 1rem; }
.section__link { color: var(--brand-600); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.section__link:hover { color: var(--navy-900); }

/* Feature cards */
.features-row {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px; margin-top: -40px; position: relative; z-index: 2;
}
.feature-card {
	background: var(--surface); border-radius: var(--radius-lg);
	padding: 26px 24px; box-shadow: var(--shadow);
	border: 1px solid var(--border);
	transition: transform .2s, box-shadow .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-card__icon {
	width: 44px; height: 44px; border-radius: 12px;
	display: grid; place-items: center; font-size: 1.5rem;
	margin-bottom: 14px;
}
.feature-card__icon--green  { background: var(--green-100); }
.feature-card__icon--blue   { background: #dbeafe; }
.feature-card__icon--amber  { background: var(--amber-100); }
.feature-card__icon--purple { background: #ede9fe; }
.feature-card__title { margin: 0 0 6px; font-size: 1.1rem; }
.feature-card__body  { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }
.feature-card__more  { font-weight: 700; font-size: .9rem; color: var(--brand-600); }

/* Post cards */
.post-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 26px;
}
.post-card {
	background: var(--surface); border-radius: var(--radius);
	overflow: hidden; border: 1px solid var(--border);
	display: flex; flex-direction: column;
	transition: transform .2s, box-shadow .2s;
	box-shadow: var(--shadow-sm);
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.post-card__thumb {
	aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2);
	display: block; position: relative;
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__thumb--placeholder {
	display: grid; place-items: center;
	background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
	color: rgba(255,255,255,.4); font-size: 3rem;
}
.post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__chip {
	display: inline-block; align-self: flex-start;
	background: var(--green-100); color: var(--green-700);
	padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .05em; text-decoration: none;
}
.post-card__title { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.post-card__title a { color: var(--navy-900); text-decoration: none; }
.post-card__title a:hover { color: var(--brand-600); }
.post-card__meta {
	color: var(--muted); font-size: .82rem; margin: auto 0 0;
	display: flex; align-items: center; gap: 8px;
}
.post-card__excerpt { color: #475569; font-size: .93rem; margin: 0; }

/* Sidebar layout */
.with-sidebar {
	display: grid; grid-template-columns: 260px 1fr; gap: 36px;
	align-items: start;
}
@media (max-width: 900px) {
	.with-sidebar { grid-template-columns: 1fr; }
}
.sidebar {
	background: var(--surface); border-radius: var(--radius);
	border: 1px solid var(--border);
	padding: 22px 22px 8px;
	position: sticky; top: 90px;
	box-shadow: var(--shadow-sm);
}
.sidebar__group { margin-bottom: 22px; }
.sidebar__title {
	margin: 0 0 12px; font-size: .78rem; font-weight: 800;
	text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
}
.sidebar__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.sidebar__list label {
	display: flex; align-items: center; gap: 10px;
	padding: 6px 4px; cursor: pointer; user-select: none;
	font-size: .93rem; color: #334155;
	border-radius: 6px;
	transition: background .1s;
}
.sidebar__list label:hover { background: var(--surface-2); }
.sidebar__list input[type="checkbox"] {
	appearance: none; -webkit-appearance: none;
	width: 18px; height: 18px; border: 1.5px solid var(--border-strong);
	border-radius: 4px; background: #fff; cursor: pointer;
	position: relative; flex-shrink: 0; transition: all .15s;
}
.sidebar__list input[type="checkbox"]:checked {
	background: var(--navy-800); border-color: var(--navy-800);
}
.sidebar__list input[type="checkbox"]:checked::after {
	content: ""; position: absolute; left: 5px; top: 1px;
	width: 5px; height: 10px; border: solid #fff;
	border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot--low  { background: var(--green-500); }
.dot--med  { background: var(--amber-500); }
.dot--high { background: var(--red-500); }
.sidebar__clear {
	margin-top: 8px; display: inline-block;
	background: none; border: 0; padding: 6px 4px;
	color: var(--brand-600); font-weight: 600; font-size: .88rem; cursor: pointer;
	font-family: inherit;
}
.sidebar__clear:hover { text-decoration: underline; }

/* Food database */
.gl-db__topbar {
	display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
	margin-bottom: 24px;
}
.gl-db__search { flex: 1 1 280px; position: relative; }
.gl-db__search input {
	width: 100%; padding: 12px 16px 12px 44px;
	border: 1px solid var(--border-strong); border-radius: 12px;
	background: #fff; font-size: .98rem; font-family: inherit; color: var(--text);
	transition: border-color .15s, box-shadow .15s;
}
.gl-db__search input:focus {
	outline: none; border-color: var(--brand-500);
	box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}
.gl-db__search svg {
	position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
	color: var(--muted-2);
}
.gl-db__sort {
	padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong);
	background: #fff; font-family: inherit; font-size: .95rem; color: var(--text); cursor: pointer;
}
.gl-db__stats { margin: 0 0 14px; color: var(--muted); font-size: .88rem; }

.food-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 18px;
}
.food-card {
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius-lg); padding: 20px 18px 18px;
	display: flex; flex-direction: column; gap: 14px;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
	box-shadow: var(--shadow-sm);
	position: relative; overflow: hidden;
}
.food-card::before {
	content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
	background: var(--border-strong); transition: background .18s ease;
}
.food-card[data-gl-tier="low"]::before  { background: var(--green-500); }
.food-card[data-gl-tier="med"]::before  { background: var(--amber-500); }
.food-card[data-gl-tier="high"]::before { background: var(--red-500); }
.food-card:hover {
	transform: translateY(-4px); box-shadow: var(--shadow-lg);
	border-color: var(--border-strong);
}
.food-card__head { display: flex; align-items: center; gap: 12px; }
.food-card__emoji {
	width: 52px; height: 52px; border-radius: 14px;
	background: linear-gradient(160deg, var(--surface-2), #fff);
	border: 1px solid var(--border);
	display: grid; place-items: center; font-size: 1.85rem;
	flex-shrink: 0; transition: transform .18s ease;
}
.food-card:hover .food-card__emoji { transform: scale(1.08) rotate(-4deg); }
.food-card__name  { margin: 0; font-size: 1rem; line-height: 1.25; color: var(--navy-900); font-weight: 700; }
.food-card__cat   { margin: 2px 0 0; color: var(--muted); font-size: .78rem; }
.food-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.food-card__stat  {
	background: var(--surface-2); border-radius: 10px;
	padding: 9px 6px; text-align: center;
	transition: background .15s ease;
}
.food-card:hover .food-card__stat { background: #eef2f8; }
.food-card__stat span {
	display: block; font-size: .7rem; color: var(--muted);
	text-transform: uppercase; letter-spacing: .04em; font-weight: 600;
	margin-bottom: 2px;
}
.food-card__stat strong { font-size: 1.05rem; font-weight: 800; color: var(--navy-900); }
.food-card__stat--gi strong.high, .food-card__stat--gl strong.high { color: var(--red-500); }
.food-card__stat--gi strong.med,  .food-card__stat--gl strong.med  { color: var(--amber-500); }
.food-card__stat--gi strong.low,  .food-card__stat--gl strong.low  { color: var(--green-500); }
.food-card__pill {
	position: absolute; top: 14px; right: 14px;
	padding: 4px 11px; border-radius: 999px; font-size: .68rem; font-weight: 800;
	text-transform: uppercase; letter-spacing: .05em;
	display: inline-flex; align-items: center; gap: 5px;
	box-shadow: 0 2px 6px rgba(15,23,42,.08);
}
.food-card__pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.food-card__pill--low  { background: var(--green-100); color: var(--green-700); }
.food-card__pill--med  { background: var(--amber-100); color: var(--amber-700); }
.food-card__pill--high { background: var(--red-100);   color: var(--red-700); }

.food-empty {
	background: var(--surface); border: 1px dashed var(--border-strong);
	border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--muted);
}

/* Calculator v3 — premium card, quick chips, SVG gauge */
.gl-calc {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	padding: 36px 36px 30px;
	box-shadow: var(--shadow-lg);
	max-width: 860px;
	margin: 0 auto;
	overflow: hidden;
}
.gl-calc::before {
	content: "";
	position: absolute; top: -140px; right: -120px;
	width: 320px; height: 320px; border-radius: 50%;
	background: radial-gradient(circle, rgba(242,102,30,.16), transparent 70%);
	pointer-events: none;
}
.gl-calc__head { position: relative; z-index: 1; text-align: center; margin-bottom: 22px; }
.gl-calc__eyebrow {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
	color: var(--brand-700); background: var(--brand-100);
	padding: 6px 14px; border-radius: 999px; margin-bottom: 12px;
}
.gl-calc__title { margin: 0 0 6px; font-size: 1.7rem; }
.gl-calc__sub { color: var(--muted); margin: 0 auto; font-size: .98rem; max-width: 48ch; }

.gl-chips {
	position: relative; z-index: 1;
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	justify-content: center; margin-bottom: 26px;
}
.gl-chips__label { font-size: .82rem; font-weight: 700; color: var(--muted); margin-right: 2px; }
.gl-chip {
	font-family: inherit; font-size: .85rem; font-weight: 600;
	background: var(--surface-2); color: var(--navy-900);
	border: 1px solid var(--border); border-radius: 999px;
	padding: 7px 14px; cursor: pointer;
	transition: transform .12s, background .15s, border-color .15s;
}
.gl-chip:hover { background: #fff; border-color: var(--brand-500); transform: translateY(-1px); }

.gl-calc__body {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start;
}
@media (max-width: 780px) { .gl-calc__body { grid-template-columns: 1fr; } }

.gl-calc__form { display: flex; flex-direction: column; gap: 16px; }
.gl-field label {
	display: block; font-weight: 700; margin-bottom: 6px;
	font-size: .82rem; color: var(--navy-900); text-transform: uppercase; letter-spacing: .04em;
}
.gl-input, .gl-select {
	width: 100%; padding: 13px 15px;
	border: 1.5px solid var(--border-strong); border-radius: 12px;
	font-size: 1rem; background: #fbfcfe; color: var(--text); font-family: inherit;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.gl-input:focus, .gl-select:focus {
	outline: none; border-color: var(--brand-500); background: #fff;
	box-shadow: 0 0 0 4px rgba(242,102,30,.15);
}
.gl-calc__submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; padding: 14px 18px; font-size: 1rem; font-weight: 800;
	background: linear-gradient(135deg, var(--brand-500), var(--brand-600)); color: #fff;
	border: 0; border-radius: 12px; cursor: pointer;
	box-shadow: 0 10px 24px rgba(242,102,30,.35);
	transition: transform .15s, box-shadow .15s, opacity .15s;
}
.gl-calc__submit:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(242,102,30,.4); }
.gl-calc__submit:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.gl-calc__hint {
	margin: 0; font-size: .9rem; color: var(--muted);
	background: var(--surface-2); border-radius: 10px; padding: 12px 14px;
	min-height: 44px; display: flex; align-items: center;
}

.gl-result {
	background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
	border-radius: var(--radius-lg); padding: 26px 20px 22px;
	display: flex; flex-direction: column; align-items: center; gap: 18px;
	position: relative; overflow: hidden;
}
.gl-result::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(300px 160px at 80% 0%, rgba(242,102,30,.32), transparent 65%);
	pointer-events: none;
}
.gl-gauge { position: relative; z-index: 1; width: 168px; height: 168px; }
.gl-gauge__ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.gl-gauge__track {
	fill: none; stroke: rgba(255,255,255,.12); stroke-width: 10;
}
.gl-gauge__fill {
	fill: none; stroke: #ffb37a; stroke-width: 10; stroke-linecap: round;
	stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
	transition: stroke-dashoffset .7s cubic-bezier(.4,0,.2,1), stroke .3s;
}
.gl-gauge__center {
	position: absolute; inset: 0; z-index: 2;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	text-align: center;
}
.gl-gauge__value {
	font-size: 2.3rem; font-weight: 800; color: #fff; line-height: 1;
	font-variant-numeric: tabular-nums;
}
.gl-gauge__unit {
	font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
	color: rgba(255,255,255,.65); margin-top: 6px;
}
.gl-result__stats {
	position: relative; z-index: 1;
	display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%;
}
.gl-result__stat {
	background: rgba(255,255,255,.08); border-radius: 12px;
	padding: 12px 10px; text-align: center;
}
.gl-result__stat-label {
	display: block; font-size: .66rem; letter-spacing: .07em; text-transform: uppercase;
	color: rgba(255,255,255,.6); margin-bottom: 5px;
}
.gl-result__stat-value {
	font-size: 1.25rem; font-weight: 800; color: #fff;
	font-variant-numeric: tabular-nums;
}


/* Single article */
/* Tag-qualified: WordPress body_class() also outputs a bare "single-post" class
   on <body> for single-post templates, so an unqualified ".single-post" rule
   here would ALSO match <body> and clamp the whole page (header/footer
   included) to var(--content) width. Scoping to the <article> element avoids
   that collision. */
article.single-post { padding: 40px 24px 60px; max-width: var(--content); margin: 0 auto; }
.single-post__cat {
	display: inline-block; background: var(--brand-100); color: var(--brand-700);
	padding: 4px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: .06em; text-decoration: none;
	margin-bottom: 14px;
}
.single-post__cat:hover { background: var(--brand-600); color: #fff; }
.single-post__title {
	margin: 0 0 16px; font-size: clamp(1.9rem, 2.4vw + 1rem, 2.9rem);
	line-height: 1.15;
}
.single-post__meta {
	display: flex; align-items: center; gap: 12px; color: var(--muted);
	font-size: .9rem; margin: 0 0 30px; flex-wrap: wrap;
}
.single-post__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.single-post__hero {
	margin: 0 0 34px; border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow);
}
.single-post__hero img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.single-post__content { font-size: 1.08rem; line-height: 1.75; }
.single-post__content h2 { margin-top: 2em; padding-top: 4px; }
.single-post__content h3 { margin-top: 1.7em; }
.single-post__content a  { color: var(--brand-600); text-decoration: underline; text-underline-offset: 3px; }
.single-post__content a:hover { color: var(--navy-800); }
.single-post__content ul li::marker,
.single-post__content ol li::marker { color: var(--brand-600); font-weight: 700; }
.single-post__content blockquote { font-size: 1.05rem; }

/* Comments */
.comments-area {
	max-width: var(--content); margin: 60px auto 0; padding: 0 24px 60px;
}
.comments-title,
.comment-reply-title {
	font-size: 1.4rem; font-weight: 800; color: var(--text);
	margin: 0 0 24px;
}
.comment-reply-title small { font-size: .8rem; font-weight: 600; margin-left: 8px; }
.comment-reply-title small a { color: var(--brand-600); }

.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding: 0 0 0 32px; }
.comment {
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); padding: 20px 22px; margin-bottom: 16px;
}
.comment-author.vcard { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.comment-author .avatar { border-radius: 50%; display: block; }
.comment-author .fn { font-weight: 700; color: var(--text); font-style: normal; }
.comment-metadata { font-size: .82rem; }
.comment-metadata a { color: var(--muted); text-decoration: none; }
.comment-metadata a:hover { color: var(--brand-600); }
.comment-content p { margin: 8px 0 0; color: var(--text); line-height: 1.65; }
.comment .reply { margin-top: 10px; }
.comment .reply a.comment-reply-link {
	font-size: .85rem; font-weight: 700; color: var(--brand-600); text-decoration: none;
}
.comment .reply a.comment-reply-link:hover { text-decoration: underline; }
.comments-pagination { display: flex; gap: 10px; justify-content: center; margin: 0 0 32px; list-style: none; padding: 0; }
.comments-closed { color: var(--muted); font-style: italic; }

.comment-respond {
	background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius-lg); padding: 28px 26px; box-shadow: var(--shadow-sm);
}
.comment-form p { margin: 0 0 16px; }
.comment-form label { display: block; font-weight: 700; font-size: .9rem; color: var(--text); margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
	background: var(--surface-2); border: 1px solid var(--border-strong);
	border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color .15s, box-shadow .15s;
}
.comment-form input:focus,
.comment-form textarea:focus {
	outline: none; border-color: var(--brand-500);
	box-shadow: 0 0 0 3px rgba(255,138,61,.2);
}
.comment-form textarea { resize: vertical; min-height: 130px; }
.comment-notes, .logged-in-as { color: var(--muted); font-size: .88rem; margin-bottom: 16px; }
.comment-notes a, .logged-in-as a { color: var(--brand-600); }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; }
.comment-form-cookies-consent label { margin: 0; font-weight: 500; }
.form-submit { margin: 8px 0 0; }
.form-submit .btn { font-family: inherit; cursor: pointer; border: 0; }

@media (max-width: 640px) {
	.comments-area { padding: 0 16px 40px; }
	.comment-list .children { padding-left: 16px; }
	.comment-respond { padding: 22px 18px; }
}

.archive-hero { padding: 56px 24px 24px; max-width: var(--container); margin: 0 auto; }
.archive-hero__title { margin: 0 0 8px; }
.archive-hero__tag { color: var(--muted); font-size: 1.05rem; max-width: 55ch; }

.static-page { padding: 40px 24px 60px; max-width: var(--content); margin: 0 auto; }

.tool-page { padding: 40px 24px 60px; max-width: var(--container); margin: 0 auto; }
.tool-page__header { text-align: center; margin-bottom: 30px; }
.tool-page__title { margin: 0 0 8px; }
.tool-page__sub   { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* Pagination */
.pagination { padding: 32px 0; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pagination a, .pagination span {
	display: inline-block; padding: 8px 14px;
	border: 1px solid var(--border-strong); border-radius: 8px;
	color: var(--text); text-decoration: none; font-size: .93rem; background: #fff;
}
.pagination a:hover { background: var(--surface-2); }
.pagination .current { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }

.search-form { display: flex; gap: 8px; max-width: 480px; margin: 20px 0; }
.search-field {
	flex: 1; padding: 12px 14px; border: 1px solid var(--border-strong);
	border-radius: 10px; font-size: 1rem; font-family: inherit;
}
.search-submit {
	padding: 12px 20px; background: var(--brand-600); color: #fff;
	border: 0; border-radius: 10px; font-weight: 700; cursor: pointer;
	font-family: inherit;
}

/* CTA */
.gl-cta {
	margin: 36px 0; border-radius: var(--radius-lg);
	background: linear-gradient(135deg, var(--brand-700), var(--navy-900));
	color: #fff; padding: 30px 32px; position: relative; overflow: hidden;
	box-shadow: var(--shadow);
	border: 1px solid rgba(255,255,255,.08);
}
.gl-cta::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(400px 250px at 10% 30%, rgba(255,138,61,.35), transparent 60%),
	            radial-gradient(500px 300px at 90% 100%, rgba(242,102,30,.25), transparent 60%);
	pointer-events: none;
}
.gl-cta--inline-mid { margin: 40px 0; }
.gl-cta__inner {
	display: flex; gap: 22px; align-items: center; justify-content: space-between;
	flex-wrap: wrap; position: relative; z-index: 1;
}
.gl-cta__icon {
	flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px;
	background: #fff; padding: 7px; box-shadow: 0 8px 18px rgba(0,0,0,.28);
	display: flex; align-items: center; justify-content: center;
}
.gl-cta__icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
.gl-cta__copy { flex: 1 1 300px; }
.gl-cta__title { color:#fff; margin: 0 0 6px; font-weight: 800; font-size: 1.2rem; }
.gl-cta__body  { color: rgba(255,255,255,.88); margin: 0; font-size: .98rem; }
.gl-cta__body strong { color: #fff; }
/* Selector qualified with the "a" tag so its specificity (0,1,1) can beat
   ".single-post__content a" (0,1,1 too, but this rule comes later in the
   file) -- otherwise the article-content underline rule wins and the CTA
   button text renders underlined. */
a.gl-cta__btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px;
	background: #fff; color: var(--brand-700);
	border-radius: 999px; text-decoration: none; font-weight: 800;
	white-space: nowrap; transition: background .15s, transform .1s, box-shadow .15s;
	box-shadow: 0 6px 18px rgba(0,0,0,.25);
	flex: 0 0 auto;
}
.gl-cta__btn-icon { font-size: 1.05rem; }
.gl-cta__btn-arrow { font-size: .82rem; transition: transform .15s; }
a.gl-cta__btn:hover {
	background: #fff5ee; color: var(--brand-700); transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0,0,0,.32);
}
a.gl-cta__btn:hover .gl-cta__btn-arrow { transform: translateX(3px); }

@media (max-width: 560px) {
	.gl-cta { padding: 24px 20px; }
	.gl-cta__inner { gap: 16px; }
	.gl-cta__icon { width: 46px; height: 46px; border-radius: 13px; }
	.gl-cta__btn { width: 100%; justify-content: center; }
}

/* Footer */
.site-footer {
	background: var(--navy-900); color: rgba(255,255,255,.72);
	margin-top: 80px; padding: 60px 0 24px;
}
.site-footer__inner {
	max-width: var(--container); margin: 0 auto; padding: 0 24px;
	display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
}
@media (max-width: 800px) { .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.site-footer__logo img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }
.site-footer__brand h3 { color: #fff; margin: 0; font-size: 1.25rem; font-weight: 800; }
.site-footer__tag { color: rgba(255,255,255,.65); font-size: .95rem; margin: 0 0 16px; max-width: 40ch; }
.site-footer__col-title {
	color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
	font-weight: 800; margin: 6px 0 14px;
}
.site-footer__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__list a { color: rgba(255,255,255,.72); text-decoration: none; font-size: .93rem; }
.site-footer__list a:hover { color: #fff; }
.site-footer__bottom {
	max-width: var(--container); margin: 40px auto 0; padding: 20px 24px 0;
	border-top: 1px solid rgba(255,255,255,.08);
	display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	color: rgba(255,255,255,.55); font-size: .85rem;
}
.site-footer__bottom a { color: rgba(255,255,255,.7); text-decoration: none; }
.site-footer__bottom a:hover { color: #fff; }

@media (max-width: 640px) {
	.site-footer__bottom { justify-content: center; text-align: center; }
}

.widget { margin-bottom: 20px; }
.widget-title {
	color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
	font-weight: 800; margin: 0 0 14px;
}
.widget ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.widget a { color: rgba(255,255,255,.72); font-size: .93rem; }
.widget a:hover { color: #fff; }
