/*
Theme Name: LyfGem Blog
Theme URI: https://lyfgem.com/
Author: LyfGem
Author URI: https://lyfgem.com/
Description: A blog-first WordPress theme for LyfGem. Navy editorial typography, light blue surfaces and thin blue-gray rules. Includes a customizable hero, a five-category Useful Guides section, a latest articles list and a newsletter block. No build step, no JavaScript framework.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lyfgem
Tags: blog, one-column, custom-logo, custom-menu, featured-images, translation-ready, editor-style
*/

/* -------------------------------------------------------------
   1. Tokens
------------------------------------------------------------- */
:root {
	--lg-ink: #10243d;
	--lg-ink-soft: #2c4661;
	--lg-muted: #5d7186;
	--lg-faint: #8598ab;
	--lg-accent: #1470d6;
	--lg-accent-dark: #0f58aa;
	--lg-surface: #f1f7fd;
	--lg-surface-soft: #f8fbfe;
	--lg-line: #d9e4f0;
	--lg-line-strong: #c3d4e6;
	--lg-white: #ffffff;

	--lg-font-display: "Newsreader", Georgia, "Times New Roman", serif;
	--lg-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--lg-wrap: 1140px;
	--lg-gutter: 24px;
	--lg-radius: 4px;
}

/* -------------------------------------------------------------
   2. Reset and base
------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--lg-white);
	color: var(--lg-ink-soft);
	font-family: var(--lg-font-sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

a { color: var(--lg-accent); text-decoration: none; }
a:hover { color: var(--lg-accent-dark); text-decoration: underline; }

h1, h2, h3, h4 {
	font-family: var(--lg-font-display);
	color: var(--lg-ink);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

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

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--lg-ink);
	color: #fff;
	padding: 10px 16px;
	z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* -------------------------------------------------------------
   3. Layout helpers
------------------------------------------------------------- */
.lg-wrap {
	width: 100%;
	max-width: var(--lg-wrap);
	margin: 0 auto;
	padding: 0 var(--lg-gutter);
}

.lg-section { padding: 56px 0; }
.lg-section--tight { padding: 40px 0; }

.lg-eyebrow {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lg-faint);
	font-weight: 600;
	margin: 0 0 18px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.lg-eyebrow::before {
	content: "";
	width: 5px; height: 5px;
	border-radius: 50%;
	background: var(--lg-accent);
	flex: none;
}
.lg-eyebrow--plain::before { display: none; }

.lg-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	border-top: 1px solid var(--lg-line);
	padding-top: 22px;
	margin-bottom: 26px;
}
.lg-section-head h2 { font-size: 28px; margin: 0; }
.lg-section-head .lg-more {
	font-size: 13px;
	color: var(--lg-muted);
	white-space: nowrap;
}
.lg-section-head .lg-more:hover { color: var(--lg-accent); }

/* -------------------------------------------------------------
   4. Buttons
------------------------------------------------------------- */
.lg-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--lg-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	padding: 11px 20px;
	border-radius: var(--lg-radius);
	border: 1px solid var(--lg-accent);
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.lg-btn:hover { background: var(--lg-accent-dark); border-color: var(--lg-accent-dark); color: #fff; text-decoration: none; }

.lg-btn--ghost {
	background: transparent;
	color: var(--lg-ink);
	border-color: transparent;
}
.lg-btn--ghost:hover { background: var(--lg-surface); color: var(--lg-ink); }

.lg-link-arrow {
	font-size: 14px;
	font-weight: 600;
	color: var(--lg-accent);
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* -------------------------------------------------------------
   5. Header
------------------------------------------------------------- */
.lg-header {
	background: var(--lg-surface-soft);
	border-bottom: 1px solid var(--lg-line);
}
.lg-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 64px;
}

.lg-brand { display: flex; align-items: center; gap: 10px; }
.lg-brand__mark { flex: none; }
.lg-brand__name {
	font-family: var(--lg-font-display);
	font-size: 21px;
	color: var(--lg-ink);
	letter-spacing: -0.015em;
	line-height: 1;
}
.lg-brand a { color: var(--lg-ink); }
.lg-brand a:hover { text-decoration: none; }
.lg-brand__tag {
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--lg-accent);
	font-weight: 700;
	font-family: var(--lg-font-sans);
}
.lg-brand img { max-height: 34px; width: auto; }

.lg-nav { margin-left: auto; }
.lg-nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 26px;
	margin: 0;
	padding: 0;
}
.lg-nav li { position: relative; }
.lg-nav a {
	font-size: 14px;
	color: var(--lg-ink-soft);
	font-weight: 500;
}
.lg-nav a:hover { color: var(--lg-accent); text-decoration: none; }
.lg-nav .current-menu-item > a { color: var(--lg-accent); }

.lg-nav .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border: 1px solid var(--lg-line);
	padding: 8px 0;
	min-width: 190px;
	flex-direction: column;
	gap: 0;
	z-index: 40;
}
.lg-nav li:hover > .sub-menu,
.lg-nav li:focus-within > .sub-menu { display: flex; }
.lg-nav .sub-menu a { display: block; padding: 7px 16px; }

.lg-header__actions { display: flex; align-items: center; gap: 12px; }

.lg-search-toggle {
	width: 34px; height: 34px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--lg-line);
	background: #fff;
	border-radius: var(--lg-radius);
	color: var(--lg-ink-soft);
	cursor: pointer;
}
.lg-search-toggle:hover { border-color: var(--lg-line-strong); color: var(--lg-accent); }

.lg-menu-toggle {
	display: none;
	width: 38px; height: 34px;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid var(--lg-line);
	border-radius: var(--lg-radius);
	color: var(--lg-ink);
	cursor: pointer;
}
.lg-menu-toggle span {
	display: block;
	width: 16px;
	height: 1.5px;
	background: currentColor;
	position: relative;
}
.lg-menu-toggle span::before,
.lg-menu-toggle span::after {
	content: "";
	position: absolute;
	left: 0;
	width: 16px;
	height: 1.5px;
	background: currentColor;
}
.lg-menu-toggle span::before { top: -5px; }
.lg-menu-toggle span::after { top: 5px; }
.lg-menu-toggle[aria-expanded="true"] span { background: transparent; }
.lg-menu-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.lg-menu-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.lg-header-search {
	display: none;
	border-top: 1px solid var(--lg-line);
	background: #fff;
	padding: 14px 0;
}
.lg-header-search.is-open { display: block; }

/* -------------------------------------------------------------
   6. Search form
------------------------------------------------------------- */
.lg-searchform { display: flex; gap: 8px; }
.lg-searchform input[type="search"] {
	flex: 1;
	font: inherit;
	font-size: 15px;
	color: var(--lg-ink);
	padding: 10px 14px;
	border: 1px solid var(--lg-line);
	border-radius: var(--lg-radius);
	background: #fff;
	min-width: 0;
}
.lg-searchform input[type="search"]:focus {
	outline: none;
	border-color: var(--lg-accent);
	box-shadow: 0 0 0 3px rgba(20, 112, 214, 0.12);
}

/* -------------------------------------------------------------
   7. Hero
------------------------------------------------------------- */
.lg-hero { padding: 54px 0 44px; }
.lg-hero__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: start;
}
.lg-hero__title {
	font-size: clamp(34px, 4.4vw, 50px);
	line-height: 1.1;
	margin: 0 0 20px;
	max-width: 15ch;
}
.lg-hero__title em {
	font-style: italic;
	color: var(--lg-accent);
}
.lg-hero__lede {
	color: var(--lg-muted);
	font-size: 15px;
	max-width: 46ch;
	margin-bottom: 24px;
}
.lg-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 22px;
}
.lg-hero__note {
	font-size: 13px;
	color: var(--lg-faint);
	margin: 0;
}

/* Featured post card */
.lg-feature__media {
	border: 1px solid var(--lg-line);
	background: var(--lg-surface);
	aspect-ratio: 16 / 10;
	overflow: hidden;
	margin-bottom: 16px;
}
.lg-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.lg-feature__meta {
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--lg-faint);
	margin: 0 0 8px;
}
.lg-feature__meta a { color: var(--lg-faint); }
.lg-feature__meta a:hover { color: var(--lg-accent); }
.lg-feature__title { font-size: 26px; margin: 0 0 10px; }
.lg-feature__title a { color: var(--lg-ink); }
.lg-feature__title a:hover { color: var(--lg-accent); text-decoration: none; }
.lg-feature__excerpt { color: var(--lg-muted); font-size: 15px; margin-bottom: 12px; }

/* -------------------------------------------------------------
   8. Useful Guides
------------------------------------------------------------- */
.lg-guides__grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	border: 1px solid var(--lg-line);
	background: var(--lg-line);
	gap: 1px;
}
.lg-guide {
	background: var(--lg-surface-soft);
	padding: 20px 18px 18px;
	display: flex;
	flex-direction: column;
	min-height: 168px;
	color: inherit;
	transition: background-color 0.15s ease;
}
.lg-guide:hover { background: var(--lg-surface); text-decoration: none; }
.lg-guide__index {
	font-size: 11px;
	color: var(--lg-faint);
	letter-spacing: 0.06em;
	margin-bottom: 22px;
}
.lg-guide__name {
	font-family: var(--lg-font-display);
	font-size: 19px;
	color: var(--lg-ink);
	margin: 0 0 8px;
	line-height: 1.25;
}
.lg-guide__desc {
	font-size: 12.5px;
	color: var(--lg-muted);
	line-height: 1.5;
	margin: 0 0 16px;
}
.lg-guide__arrow {
	margin-top: auto;
	color: var(--lg-accent);
	font-size: 15px;
	align-self: flex-end;
}

/* -------------------------------------------------------------
   9. Article list
------------------------------------------------------------- */
.lg-list { border-top: 1px solid var(--lg-line); }
.lg-row {
	display: grid;
	grid-template-columns: 42px 1fr auto 24px;
	align-items: start;
	gap: 18px;
	padding: 18px 0;
	border-bottom: 1px solid var(--lg-line);
}
.lg-row__index {
	font-size: 11px;
	color: var(--lg-faint);
	padding-top: 5px;
	letter-spacing: 0.06em;
}
.lg-row__title {
	font-family: var(--lg-font-display);
	font-size: 19px;
	line-height: 1.3;
	margin: 0 0 4px;
}
.lg-row__title a { color: var(--lg-ink); }
.lg-row__title a:hover { color: var(--lg-accent); text-decoration: none; }
.lg-row__excerpt {
	font-size: 13.5px;
	color: var(--lg-muted);
	margin: 0;
}
.lg-row__cat {
	font-size: 10.5px;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--lg-faint);
	padding-top: 6px;
	white-space: nowrap;
}
.lg-row__cat a { color: var(--lg-faint); }
.lg-row__cat a:hover { color: var(--lg-accent); }
.lg-row__go { color: var(--lg-accent); padding-top: 3px; text-align: right; }

/* Card grid (archives) */
.lg-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.lg-card {
	border: 1px solid var(--lg-line);
	background: #fff;
	display: flex;
	flex-direction: column;
}
.lg-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--lg-surface); border-bottom: 1px solid var(--lg-line); }
.lg-card__media img { width: 100%; height: 100%; object-fit: cover; }
.lg-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.lg-card__meta {
	font-size: 10.5px;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--lg-faint);
	margin: 0 0 10px;
}
.lg-card__meta a { color: var(--lg-faint); }
.lg-card__title { font-size: 20px; margin: 0 0 8px; }
.lg-card__title a { color: var(--lg-ink); }
.lg-card__title a:hover { color: var(--lg-accent); text-decoration: none; }
.lg-card__excerpt { font-size: 14px; color: var(--lg-muted); margin: 0 0 14px; }
.lg-card__more { margin-top: auto; }

/* -------------------------------------------------------------
   10. Newsletter
------------------------------------------------------------- */
.lg-newsletter {
	border: 1px solid var(--lg-line);
	background: var(--lg-surface);
	padding: 30px 32px;
	display: grid;
	grid-template-columns: 1fr minmax(280px, 420px);
	gap: 32px;
	align-items: center;
}
.lg-newsletter__title { font-size: 25px; margin: 0 0 8px; }
.lg-newsletter__text { font-size: 14px; color: var(--lg-muted); margin: 0; }
.lg-newsletter__form { display: flex; gap: 8px; }
.lg-newsletter__form input[type="email"] {
	flex: 1;
	font: inherit;
	font-size: 14px;
	padding: 11px 14px;
	border: 1px solid var(--lg-line-strong);
	border-radius: var(--lg-radius);
	background: #fff;
	color: var(--lg-ink);
	min-width: 0;
}
.lg-newsletter__form input[type="email"]:focus {
	outline: none;
	border-color: var(--lg-accent);
	box-shadow: 0 0 0 3px rgba(20, 112, 214, 0.12);
}
.lg-newsletter__fine { font-size: 12px; color: var(--lg-faint); margin: 10px 0 0; }

/* -------------------------------------------------------------
   11. Single post / pages
------------------------------------------------------------- */
.lg-page-head {
	border-bottom: 1px solid var(--lg-line);
	background: var(--lg-surface-soft);
	padding: 40px 0;
	margin-bottom: 44px;
}
.lg-page-head h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 10px; max-width: 22ch; }
.lg-page-head p { color: var(--lg-muted); font-size: 15px; margin: 0; max-width: 60ch; }

.lg-article { max-width: 720px; margin: 0 auto 56px; }
.lg-article__meta {
	font-size: 11px;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--lg-faint);
	margin: 0 0 14px;
}
.lg-article__meta a { color: var(--lg-faint); }
.lg-article__meta a:hover { color: var(--lg-accent); }
.lg-article__title { font-size: clamp(30px, 3.8vw, 42px); margin: 0 0 16px; }
.lg-article__lede { font-size: 17px; color: var(--lg-muted); margin: 0 0 26px; }
.lg-article__media { margin: 0 0 30px; border: 1px solid var(--lg-line); }

.lg-content { font-size: 17px; line-height: 1.75; color: var(--lg-ink-soft); }
.lg-content h2 { font-size: 27px; margin: 1.8em 0 0.5em; }
.lg-content h3 { font-size: 21px; margin: 1.6em 0 0.4em; }
.lg-content ul, .lg-content ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.lg-content li { margin-bottom: 0.4em; }
.lg-content blockquote {
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
	border-left: 2px solid var(--lg-accent);
	font-family: var(--lg-font-display);
	font-size: 20px;
	color: var(--lg-ink);
	font-style: italic;
}
.lg-content img, .lg-content figure { margin: 1.6em 0; }
.lg-content figcaption { font-size: 13px; color: var(--lg-faint); margin-top: 8px; }
.lg-content table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 1.5em 0; }
.lg-content th, .lg-content td { border: 1px solid var(--lg-line); padding: 9px 12px; text-align: left; }
.lg-content th { background: var(--lg-surface); color: var(--lg-ink); }
.lg-content code {
	background: var(--lg-surface);
	padding: 2px 5px;
	font-size: 0.9em;
	border-radius: 3px;
}
.lg-content pre {
	background: var(--lg-surface);
	border: 1px solid var(--lg-line);
	padding: 16px;
	overflow-x: auto;
	font-size: 14px;
}
.lg-content a { text-decoration: underline; text-underline-offset: 2px; }

.lg-tags { margin-top: 32px; font-size: 13px; color: var(--lg-muted); }
.lg-tags a {
	display: inline-block;
	border: 1px solid var(--lg-line);
	padding: 3px 10px;
	margin: 0 6px 6px 0;
	color: var(--lg-muted);
	border-radius: 100px;
}
.lg-tags a:hover { border-color: var(--lg-accent); color: var(--lg-accent); text-decoration: none; }

.lg-postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1px;
	background: var(--lg-line);
	border: 1px solid var(--lg-line);
	margin-top: 40px;
}
.lg-postnav a {
	background: var(--lg-surface-soft);
	padding: 18px 20px;
	display: block;
	color: var(--lg-ink);
}
.lg-postnav a:hover { background: var(--lg-surface); text-decoration: none; }
.lg-postnav span {
	display: block;
	font-size: 10.5px;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--lg-faint);
	margin-bottom: 6px;
}
.lg-postnav strong { font-family: var(--lg-font-display); font-weight: 500; font-size: 16px; }
.lg-postnav .lg-postnav__next { text-align: right; }

/* Comments */
.lg-comments { max-width: 720px; margin: 0 auto 56px; }
.lg-comments h2 { font-size: 22px; }
.lg-comments ol { list-style: none; padding: 0; margin: 0 0 28px; }
.lg-comments ol ol { padding-left: 26px; margin: 0; }
.lg-comments .comment-body {
	border-bottom: 1px solid var(--lg-line);
	padding: 18px 0;
	font-size: 15px;
}
.lg-comments .comment-author { font-family: var(--lg-font-display); color: var(--lg-ink); }
.lg-comments .comment-meta { font-size: 12px; color: var(--lg-faint); margin-bottom: 8px; }
.lg-comments input[type="text"],
.lg-comments input[type="email"],
.lg-comments input[type="url"],
.lg-comments textarea {
	width: 100%;
	font: inherit;
	font-size: 15px;
	padding: 10px 13px;
	border: 1px solid var(--lg-line);
	border-radius: var(--lg-radius);
	background: #fff;
}
.lg-comments .submit {
	background: var(--lg-accent);
	color: #fff;
	border: 0;
	padding: 11px 22px;
	font-size: 14px;
	font-weight: 600;
	border-radius: var(--lg-radius);
	cursor: pointer;
}

/* -------------------------------------------------------------
   12. Pagination
------------------------------------------------------------- */
.lg-pagination { margin: 44px 0 0; }
.lg-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}
.lg-pagination .screen-reader-text { position: absolute !important; }
.lg-pagination .page-numbers {
	border: 1px solid var(--lg-line);
	padding: 7px 13px;
	font-size: 14px;
	color: var(--lg-ink-soft);
	border-radius: var(--lg-radius);
}
.lg-pagination .page-numbers:hover { border-color: var(--lg-accent); color: var(--lg-accent); text-decoration: none; }
.lg-pagination .current {
	background: var(--lg-ink);
	border-color: var(--lg-ink);
	color: #fff;
}

/* -------------------------------------------------------------
   13. Footer
------------------------------------------------------------- */
.lg-footer {
	background: var(--lg-surface);
	border-top: 1px solid var(--lg-line);
	margin-top: 64px;
	padding: 48px 0 30px;
}
.lg-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.4fr;
	gap: 40px;
}
.lg-footer__about { font-size: 14px; color: var(--lg-muted); max-width: 34ch; margin: 14px 0 0; }
.lg-footer__col h3 {
	font-family: var(--lg-font-sans);
	font-size: 10.5px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--lg-faint);
	font-weight: 700;
	margin: 0 0 14px;
}
.lg-footer__col ul { list-style: none; margin: 0; padding: 0; }
.lg-footer__col li { margin-bottom: 9px; }
.lg-footer__col a { font-size: 14px; color: var(--lg-ink-soft); }
.lg-footer__col a:hover { color: var(--lg-accent); text-decoration: none; }
.lg-footer__bottom {
	border-top: 1px solid var(--lg-line);
	margin-top: 38px;
	padding-top: 18px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	font-size: 12.5px;
	color: var(--lg-faint);
}
.lg-footer__bottom a { color: var(--lg-faint); }
.lg-footer__bottom a:hover { color: var(--lg-accent); }

/* -------------------------------------------------------------
   14. 404 and empty states
------------------------------------------------------------- */
.lg-empty {
	border: 1px solid var(--lg-line);
	background: var(--lg-surface-soft);
	padding: 40px;
	text-align: center;
	max-width: 620px;
	margin: 0 auto;
}
.lg-empty h1, .lg-empty h2 { margin-top: 0; }
.lg-empty .lg-searchform { max-width: 380px; margin: 20px auto 0; }

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0.4em 1.4em 1em 0; }
.alignright { float: right; margin: 0.4em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1000px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100vw; }
.wp-caption { max-width: 100%; }
.sticky .lg-row__index::after { content: " •"; color: var(--lg-accent); }

/* -------------------------------------------------------------
   15. Responsive
------------------------------------------------------------- */
@media (max-width: 1024px) {
	.lg-guides__grid { grid-template-columns: repeat(3, 1fr); }
	.lg-cards { grid-template-columns: repeat(2, 1fr); }
	.lg-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
	.lg-footer__col--wide { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
	.lg-hero__grid { grid-template-columns: 1fr; gap: 36px; }
	.lg-hero__title { max-width: 100%; }
	.lg-newsletter { grid-template-columns: 1fr; padding: 26px 22px; gap: 20px; }

	.lg-menu-toggle { display: inline-flex; }
	.lg-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: #fff;
		border-bottom: 1px solid var(--lg-line);
		padding: 8px var(--lg-gutter) 16px;
		z-index: 50;
	}
	.lg-nav.is-open { display: block; }
	.lg-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
	.lg-nav li { border-bottom: 1px solid var(--lg-line); }
	.lg-nav li:last-child { border-bottom: 0; }
	.lg-nav a { display: block; padding: 12px 2px; font-size: 15px; }
	.lg-nav .sub-menu {
		display: flex;
		position: static;
		border: 0;
		padding: 0 0 8px 14px;
		min-width: 0;
	}
	.lg-header { position: relative; }
	.lg-header__inner { position: static; }
}

@media (max-width: 700px) {
	:root { --lg-gutter: 18px; }
	.lg-btn--subscribe { display: none; }
	.lg-brand__tag { display: none; }
	.lg-section { padding: 40px 0; }
	.lg-hero { padding: 34px 0 30px; }
	.lg-guides__grid { grid-template-columns: 1fr; }
	.lg-guide { min-height: 0; padding: 18px; }
	.lg-guide__index { margin-bottom: 10px; }
	.lg-cards { grid-template-columns: 1fr; }
	.lg-row {
		grid-template-columns: 1fr auto;
		gap: 6px 14px;
	}
	.lg-row__index { display: none; }
	.lg-row__cat { grid-row: 2; grid-column: 1; padding-top: 4px; }
	.lg-row__go { grid-row: 1; grid-column: 2; }
	.lg-footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.lg-footer__col--wide { grid-column: auto; }
	.lg-postnav { grid-template-columns: 1fr; }
	.lg-postnav .lg-postnav__next { text-align: left; }
	.lg-newsletter__form { flex-direction: column; }
	.lg-newsletter__form .lg-btn { justify-content: center; }
	.lg-section-head { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
