/*
Theme Name: Linssit.fi
Theme URI: https://www.linssit.fi/
Description: Linssit.fi-sivuston lapsiteema Twenty Thirteen -teemalle: oma logo, selkeä ylätunniste ja navigaatio, leveämpi sisältöpalsta sekä tyylit sisällön lf-komponenteille (CTA, faktalaatikko, plussat ja miinukset, taulukot, kuvakaappaukset, laskuri).
Author: Linssit.fi
Template: twentythirteen
Version: 1.0.2
Requires at least: 5.9
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: linssit
*/

/**
 * Contents
 *  1. Tokens
 *  2. Base & typography
 *  3. Header
 *  4. Navigation (desktop, dropdowns, search)
 *  5. Layout / entry
 *  6. Entry content elements
 *  7. Components (lf-*)
 *  8. Homepage helpers (lf-hero, lf-cards, lf-badge, lf-steps)
 *  9. Calculator (lf-calc)
 * 10. Footer
 * 11. Misc (comments, archive, 404)
 * 12. Responsive
 * 13. Print
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
	--lf-navy: #0f2d44;
	--lf-navy-2: #17405f;
	--lf-teal: #0b7a85;
	--lf-teal-dark: #08646d;
	--lf-aqua: #3fc1c9;
	--lf-aqua-light: #eaf6f7;
	--lf-aqua-50: #f4fafb;
	--lf-coral: #f0613d;          /* decorative accent */
	--lf-cta: #cf4520;            /* button background, white text 4.6:1 */
	--lf-cta-hover: #b8381a;
	--lf-text: #0f2d44;
	--lf-muted: #5b7083;          /* 5.1:1 on white */
	--lf-border: #d9e7ea;
	--lf-border-strong: #c4d8dd;
	--lf-green: #1a7f45;
	--lf-green-bg: #effaf3;
	--lf-red: #c0392b;
	--lf-red-bg: #fdf3f1;
	--lf-amber: #b7791f;
	--lf-amber-bg: #fff8e8;
	--lf-radius: 14px;
	--lf-radius-sm: 10px;
	--lf-shadow: 0 1px 2px rgba(15, 45, 68, 0.06), 0 10px 28px -14px rgba(15, 45, 68, 0.28);
	--lf-font-head: Manrope, "Source Sans Pro", "Segoe UI", Helvetica, Arial, sans-serif;
	--lf-font-body: "Source Sans Pro", "Segoe UI", Helvetica, Arial, sans-serif;
	--lf-wrap: 1120px;
	--lf-col: 760px;
	--lf-gutter: 16px;
	--lf-sticky-offset: 72px;
}

/* ==========================================================================
   2. Base & typography
   ========================================================================== */

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

body {
	background: #fff;
	color: var(--lf-text);
	font-family: var(--lf-font-body);
	font-size: 18px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

html,
button,
input,
select,
textarea {
	font-family: var(--lf-font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--lf-navy);
	font-family: var(--lf-font-head);
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.25;
	scroll-margin-top: var(--lf-sticky-offset);
}

a {
	color: var(--lf-teal);
}

a:visited {
	color: var(--lf-teal);
}

a:hover,
a:active {
	color: var(--lf-teal-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
	outline: 3px solid var(--lf-aqua);
	outline-offset: 2px;
}

::selection {
	background: #bfe9ec;
	color: var(--lf-navy);
}

.site {
	border: 0;
	max-width: none;
}

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

.screen-reader-text:focus {
	-webkit-clip-path: none;
	clip-path: none;
	height: auto;
	margin: 0;
	overflow: visible;
	width: auto;
}

.skip-link:focus {
	color: var(--lf-navy);
	z-index: 100001;
}

/* Inputs & buttons (parent uses orange gradients) */
button,
input,
textarea,
select {
	border: 1.5px solid var(--lf-border-strong);
	border-radius: 8px;
}

input:focus,
textarea:focus,
select:focus {
	border-color: var(--lf-teal);
	outline: 0;
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
	background: var(--lf-teal);
	border: 0;
	border-radius: 10px;
	color: #fff;
	font-family: var(--lf-font-head);
	font-weight: 700;
	padding: 11px 22px;
}

button:hover,
button:focus,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="reset"]:focus {
	background: var(--lf-teal-dark);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active,
input[type="reset"]:active {
	background: var(--lf-teal-dark);
	border: 0;
	padding: 11px 22px;
}

::-webkit-input-placeholder { color: #6b7f90; }
::-moz-placeholder { color: #6b7f90; }
::placeholder { color: #6b7f90; }

/* ==========================================================================
   3. Header
   ========================================================================== */

.site-header {
	background: #fff;
	position: static;
}

.site-branding {
	align-items: center;
	display: flex;
	gap: 22px;
	margin: 0 auto;
	max-width: var(--lf-wrap);
	padding: 18px 24px;
}

.site-header .home-link {
	color: var(--lf-navy);
	display: inline-flex;
	flex: none;
	margin: 0;
	max-width: none;
	min-height: 0;
	padding: 4px 0;
	width: auto;
}

.site-header .home-link:hover {
	text-decoration: none;
}

.site-logo__svg {
	display: block;
	height: 46px;
	width: auto;
}

.site-title {
	font-size: 1rem;
	margin: 0;
	padding: 0;
}

.site-description {
	border-left: 1px solid var(--lf-border);
	color: var(--lf-muted);
	font: 400 15px/1.35 var(--lf-font-body);
	margin: 0;
	max-width: 270px;
	padding: 2px 0 2px 22px;
}

.lf-header-cta,
.lf-header-cta:visited {
	border: 2px solid var(--lf-teal);
	border-radius: 999px;
	color: var(--lf-teal);
	flex: none;
	font: 700 15px/1 var(--lf-font-head);
	margin-left: auto;
	padding: 11px 18px;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.lf-header-cta:hover,
.lf-header-cta:focus {
	background: var(--lf-teal);
	color: #fff;
	text-decoration: none;
}

/* ==========================================================================
   4. Navigation
   ========================================================================== */

.navbar {
	background: var(--lf-navy);
	box-shadow: 0 2px 12px rgba(15, 45, 68, 0.18);
	max-width: none;
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.admin-bar .navbar {
	top: 32px;
}

.main-navigation {
	align-items: center;
	display: flex;
	flex-wrap: nowrap;
	margin: 0 auto;
	max-width: var(--lf-wrap);
	min-height: 54px;
	padding: 0 16px;
}

.main-navigation > div:not(.search-form) {
	flex: 1 1 auto;
	min-width: 0;
}

ul.nav-menu,
div.nav-menu > ul {
	display: flex;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
}

.nav-menu li {
	display: block;
	position: relative;
}

.nav-menu li a {
	color: #fff;
	font: 700 15.5px/1.2 var(--lf-font-head);
	letter-spacing: 0;
	padding: 18px 13px;
	text-decoration: none;
}

.nav-menu li:hover > a,
.nav-menu li a:hover,
.nav-menu li:focus > a,
.nav-menu li a:focus,
.nav-menu li.focus > a {
	background-color: rgba(255, 255, 255, 0.08);
	color: #fff;
	text-decoration: none;
}

.nav-menu .current_page_item > a,
.nav-menu .current_page_ancestor > a,
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a {
	box-shadow: inset 0 -3px 0 var(--lf-aqua);
	color: #fff;
	font-style: normal;
}

/* Dropdown chevron on top-level parents */
.nav-menu > li.menu-item-has-children > a::after,
.nav-menu > li.page_item_has_children > a::after,
div.nav-menu > ul > li.page_item_has_children > a::after {
	border-bottom: 2px solid currentColor;
	border-right: 2px solid currentColor;
	content: "";
	display: inline-block;
	height: 6px;
	margin-left: 8px;
	opacity: 0.75;
	position: relative;
	top: -3px;
	transform: rotate(45deg);
	width: 6px;
}

/* Dropdowns */
.nav-menu .sub-menu,
.nav-menu .children {
	background: #fff;
	border: 1px solid var(--lf-border);
	border-radius: 12px;
	box-shadow: 0 22px 44px -18px rgba(15, 45, 68, 0.45), 0 2px 6px rgba(15, 45, 68, 0.08);
	clip: auto;
	height: auto;
	left: 0;
	list-style: none;
	margin: 0;
	opacity: 0;
	overflow: visible;
	padding: 8px;
	position: absolute;
	top: 100%;
	transform: translateY(6px);
	transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
	visibility: hidden;
	width: 290px;
	z-index: 99999;
}

.nav-menu .sub-menu ul,
.nav-menu .children ul {
	left: calc(100% + 8px);
	top: -9px;
}

ul.nav-menu li:hover > ul,
.nav-menu ul li:hover > ul,
ul.nav-menu .focus > ul,
.nav-menu .focus > ul,
.nav-menu li:focus-within > ul {
	clip: auto;
	height: auto;
	opacity: 1;
	overflow: visible;
	transform: none;
	visibility: visible;
	width: 290px;
}

ul.nav-menu ul a,
.nav-menu ul ul a {
	border-radius: 8px;
	color: var(--lf-navy);
	font: 600 15px/1.35 var(--lf-font-head);
	margin: 0;
	padding: 10px 12px;
	width: auto;
}

.nav-menu .sub-menu li:hover > a,
.nav-menu .children li:hover > a,
ul.nav-menu ul a:hover,
.nav-menu ul ul a:hover,
ul.nav-menu ul a:focus,
.nav-menu ul ul a:focus {
	background-color: var(--lf-aqua-light);
	color: var(--lf-teal-dark);
}

.nav-menu .sub-menu .current-menu-item > a,
.nav-menu .sub-menu .current_page_item > a,
.nav-menu .children .current_page_item > a {
	box-shadow: none;
	color: var(--lf-teal-dark);
	background-color: var(--lf-aqua-50);
}

.nav-menu .sub-menu .menu-item-has-children > a::after,
.nav-menu .children .page_item_has_children > a::after {
	border-right: 2px solid currentColor;
	border-top: 2px solid currentColor;
	content: "";
	float: right;
	height: 6px;
	margin-top: 6px;
	transform: rotate(45deg);
	width: 6px;
}

.menu-toggle,
.submenu-toggle {
	display: none;
}

/* Search in the navbar */
.site-header .search-form {
	flex: none;
	margin-left: auto;
	position: relative;
	right: auto;
	top: auto;
}

.site-header .search-form label {
	display: block;
	margin: 0;
}

.site-header .search-field,
.site-header .search-field:focus {
	-webkit-appearance: none;
	appearance: none;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") no-repeat 11px center;
	background-size: 19px 19px;
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	height: 40px;
	margin: 7px 0;
	padding: 0 12px 0 40px;
	transition: width 0.3s ease, background-color 0.3s ease;
	width: 42px;
}

.site-header .search-field:hover {
	background-color: rgba(255, 255, 255, 0.08);
}

.site-header .search-field:focus {
	background-color: rgba(255, 255, 255, 0.14);
	border: 0;
	box-shadow: inset 0 0 0 2px var(--lf-aqua);
	cursor: text;
	outline: 0;
	width: 230px;
}

.site-header .search-field::placeholder {
	color: rgba(255, 255, 255, 0.72);
}

.site-header .search-field::-webkit-input-placeholder {
	color: rgba(255, 255, 255, 0.72);
}

.site-header .search-field:not(:focus)::placeholder {
	color: transparent;
}

.site-header .search-field:not(:focus)::-webkit-input-placeholder {
	color: transparent;
}

/* ==========================================================================
   5. Layout / entry
   ========================================================================== */

.site-main {
	background: #fff;
}

.hentry {
	padding: 44px 0 24px;
}

.entry-header,
.entry-content,
.entry-summary,
.entry-meta,
.comments-title,
.comment-list,
.comment-reply-title,
.must-log-in,
.comment-respond .comment-form,
.comment-respond iframe,
.comment-navigation,
.no-comments {
	max-width: calc(var(--lf-col) + 2 * var(--lf-gutter));
	padding-left: var(--lf-gutter);
	padding-right: var(--lf-gutter);
}

.entry-header {
	margin-bottom: 26px;
}

.entry-title {
	color: var(--lf-navy);
	font-family: var(--lf-font-head);
	font-size: 42px;
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.12;
	margin: 0;
}

.entry-title a,
.entry-title a:visited {
	color: var(--lf-navy);
}

.entry-title a:hover {
	color: var(--lf-teal);
}

.entry-thumbnail img {
	border-radius: var(--lf-radius);
	margin: 0 auto 22px;
}

/* Pages: no meta clutter; the edit link (logged-in users only) stays small. */
.page .entry-meta,
footer.entry-meta {
	color: var(--lf-muted);
	font-size: 14px;
	margin-top: 8px;
}

.entry-meta a,
.entry-meta a:hover {
	color: var(--lf-teal);
}

.page .entry-header .entry-meta {
	display: none;
}

/* ==========================================================================
   6. Entry content elements
   ========================================================================== */

.entry-content,
.entry-summary,
.page-content {
	font-size: 18px;
	line-height: 1.65;
	-webkit-hyphens: manual;
	hyphens: manual;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content p,
.entry-summary p {
	margin: 0 0 1.1em;
}

/* Lead paragraph */
.entry-content > p:first-child {
	font-size: 20px;
	line-height: 1.6;
}

/* In-text links: subtle underline that becomes solid on hover (does not rely on colour alone). */
.entry-content a,
.entry-summary a,
.comment-content a {
	color: var(--lf-teal);
	text-decoration: underline;
	text-decoration-color: rgba(11, 122, 133, 0.35);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

.entry-content a:visited {
	color: var(--lf-teal);
}

.entry-content a:hover,
.entry-content a:focus,
.entry-summary a:hover,
.comment-content a:hover {
	color: var(--lf-teal-dark);
	text-decoration-color: currentColor;
	text-decoration-thickness: 2px;
}

.entry-content h2 {
	font-size: 29px;
	letter-spacing: -0.02em;
	line-height: 1.22;
	margin: 2.1em 0 0.6em;
}

/* Subtle accent above H2 */
.entry-content > h2::before {
	background: linear-gradient(90deg, var(--lf-aqua), var(--lf-teal));
	border-radius: 3px;
	content: "";
	display: block;
	height: 4px;
	margin-bottom: 14px;
	width: 44px;
}

.entry-content h3 {
	font-size: 21px;
	font-weight: 800;
	line-height: 1.32;
	margin: 1.7em 0 0.45em;
}

.entry-content h4 {
	font-size: 18px;
	font-weight: 700;
	margin: 1.5em 0 0.4em;
}

.entry-content h5,
.entry-content h6 {
	font-size: 16px;
	font-weight: 700;
	margin: 1.4em 0 0.4em;
}

.entry-content ul,
.entry-content ol {
	margin: 0 0 1.2em;
	padding-left: 1.4em;
}

.entry-content ul {
	list-style-type: disc;
}

.entry-content li {
	margin-bottom: 0.4em;
	padding-left: 0.2em;
}

.entry-content li::marker {
	color: var(--lf-teal);
	font-weight: 700;
}

.entry-content li > ul,
.entry-content li > ol {
	margin: 0.4em 0 0.2em;
}

.entry-content blockquote {
	border-left: 4px solid var(--lf-aqua);
	color: var(--lf-navy);
	font-size: 20px;
	font-style: normal;
	font-weight: 400;
	margin: 1.6em 0;
	padding: 4px 0 4px 22px;
}

.entry-content blockquote cite,
.entry-content blockquote small {
	color: var(--lf-muted);
	font-size: 15px;
	text-transform: none;
}

.entry-content hr {
	background: var(--lf-border);
	border: 0;
	height: 1px;
	margin: 2em 0;
}

.entry-content strong,
.entry-content b {
	color: var(--lf-navy);
	font-weight: 700;
}

.entry-content code {
	background: var(--lf-aqua-50);
	border-radius: 4px;
	font-size: 0.85em;
	padding: 1px 5px;
}

/* Generic tables (non lf-table) */
table {
	border-bottom: 1px solid var(--lf-border);
	font-size: 16px;
	line-height: 1.5;
}

caption,
th,
td {
	text-align: left;
}

th {
	color: var(--lf-navy);
	font-weight: 700;
	text-transform: none;
}

td {
	border-top: 1px solid var(--lf-border);
	padding: 9px 12px 9px 0;
}

caption {
	color: var(--lf-muted);
	font-size: 14px;
	margin: 0 0 10px;
}

/* Legacy images: no pulled-out negative margins in the wider column. */
.entry-content img.alignleft,
.entry-content .wp-caption.alignleft,
figure.wp-caption.alignleft,
img.alignleft {
	margin: 6px 28px 16px 0;
}

.entry-content img.alignright,
.entry-content .wp-caption.alignright,
figure.wp-caption.alignright,
img.alignright {
	margin: 6px 0 16px 28px;
}

.entry-content img {
	border-radius: 8px;
}

.wp-caption {
	margin-bottom: 20px;
}

.wp-caption img {
	display: block;
}

.wp-caption .wp-caption-text,
.entry-caption,
.gallery-caption {
	color: var(--lf-muted);
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.4;
	margin: 7px 0 0;
}

div.wp-caption.alignright .wp-caption-text {
	padding-left: 0;
}

/* Embeds */
.entry-content .wp-block-embed,
.entry-content iframe {
	border-radius: var(--lf-radius-sm);
}

/* ==========================================================================
   7. Components (lf-*)
   ========================================================================== */

/* --- CTA ------------------------------------------------------------------ */
.lf-cta {
	align-items: center;
	background: linear-gradient(135deg, #f1fafb 0%, var(--lf-aqua-light) 55%, #d9f0f2 100%);
	border: 1px solid #cfe7ea;
	border-radius: var(--lf-radius);
	box-shadow: var(--lf-shadow);
	display: flex;
	gap: 18px 28px;
	margin: 1.8em 0;
	overflow: hidden;
	padding: 22px 26px;
	position: relative;
}

.lf-cta::before {
	background: linear-gradient(180deg, var(--lf-aqua), var(--lf-teal));
	bottom: 0;
	content: "";
	left: 0;
	position: absolute;
	top: 0;
	width: 5px;
}

.entry-content .lf-cta p,
.lf-cta p {
	margin: 0;
}

.lf-cta__text {
	color: var(--lf-navy);
	flex: 1 1 auto;
	font-size: 18px;
	line-height: 1.5;
}

.lf-cta__text strong {
	font-family: var(--lf-font-head);
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.lf-cta__action {
	flex: none;
}

/* --- Button --------------------------------------------------------------- */
.lf-btn,
.entry-content a.lf-btn,
.entry-content a.lf-btn:visited {
	align-items: center;
	background: var(--lf-cta);
	border: 0;
	border-radius: 12px;
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 18px -8px rgba(207, 69, 32, 0.65);
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font-family: var(--lf-font-head);
	font-size: 17px;
	font-weight: 800;
	gap: 10px;
	justify-content: center;
	letter-spacing: 0;
	line-height: 1.2;
	min-height: 52px;
	padding: 14px 24px;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.lf-btn::after {
	content: "\2192";
	font-size: 1.15em;
	line-height: 1;
	transition: transform 0.15s ease;
}

.lf-btn:hover,
.lf-btn:focus,
.entry-content a.lf-btn:hover,
.entry-content a.lf-btn:focus {
	background: var(--lf-cta-hover);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.lf-btn:hover::after,
.lf-btn:focus::after {
	transform: translateX(3px);
}

.lf-btn:focus-visible {
	outline: 3px solid var(--lf-aqua);
	outline-offset: 3px;
}

/* Secondary button variant */
.lf-btn--ghost,
.entry-content a.lf-btn--ghost,
.entry-content a.lf-btn--ghost:visited {
	background: #fff;
	box-shadow: inset 0 0 0 2px var(--lf-teal);
	color: var(--lf-teal-dark);
}

.lf-btn--ghost:hover,
.lf-btn--ghost:focus,
.entry-content a.lf-btn--ghost:hover,
.entry-content a.lf-btn--ghost:focus {
	background: var(--lf-teal);
	box-shadow: inset 0 0 0 2px var(--lf-teal);
	color: #fff;
}

/* --- Facts box ------------------------------------------------------------ */
.lf-facts {
	background: #fff;
	border: 1px solid var(--lf-border);
	border-radius: var(--lf-radius);
	box-shadow: var(--lf-shadow);
	margin: 2em 0;
	overflow: hidden;
}

.entry-content .lf-facts h2,
.entry-content .lf-facts h3,
.lf-facts > h2,
.lf-facts > h3 {
	background: var(--lf-navy);
	color: #fff;
	font-size: 19px;
	letter-spacing: -0.01em;
	margin: 0;
	padding: 15px 22px;
}

.entry-content .lf-facts > h2::before {
	display: none;
}

.lf-facts table {
	border: 0;
	font-size: 16px;
	line-height: 1.5;
	margin: 0;
	width: 100%;
}

.lf-facts th,
.lf-facts td {
	border-top: 1px solid var(--lf-border);
	padding: 11px 22px;
	vertical-align: baseline;
}

.lf-facts tr:first-child th,
.lf-facts tr:first-child td {
	border-top: 0;
}

.lf-facts th {
	color: var(--lf-navy);
	font-family: var(--lf-font-head);
	font-size: 14.5px;
	font-weight: 700;
	width: 36%;
}

.lf-facts tbody tr:nth-child(even) {
	background: var(--lf-aqua-50);
}

/* --- Pros & cons ---------------------------------------------------------- */
.lf-proscons {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 1.8em 0;
}

.lf-pros,
.lf-cons {
	border: 1px solid var(--lf-border);
	border-radius: var(--lf-radius);
	border-top-width: 4px;
	padding: 18px 20px 10px;
}

.lf-pros {
	background: var(--lf-green-bg);
	border-color: #cfe9d9;
	border-top-color: var(--lf-green);
}

.lf-cons {
	background: var(--lf-red-bg);
	border-color: #f2d6d1;
	border-top-color: var(--lf-red);
}

.entry-content .lf-proscons h3,
.lf-proscons h3 {
	font-size: 18px;
	margin: 0 0 10px;
}

.entry-content .lf-proscons ul,
.lf-proscons ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.entry-content .lf-proscons li,
.lf-proscons li {
	font-size: 16.5px;
	line-height: 1.5;
	margin: 0 0 9px;
	padding: 0 0 0 30px;
	position: relative;
}

.lf-proscons li::before {
	border-radius: 50%;
	color: #fff;
	content: "";
	font-size: 12px;
	font-weight: 700;
	height: 20px;
	left: 0;
	line-height: 20px;
	position: absolute;
	text-align: center;
	top: 2px;
	width: 20px;
}

.lf-pros li::before {
	background: var(--lf-green);
	content: "\2713";
}

.lf-cons li::before {
	background: var(--lf-red);
	content: "\2715";
	font-size: 11px;
}

/* --- Notes ---------------------------------------------------------------- */
.lf-note {
	background: var(--lf-aqua-light);
	border-left: 4px solid var(--lf-teal);
	border-radius: 0 var(--lf-radius-sm) var(--lf-radius-sm) 0;
	color: var(--lf-navy);
	font-size: 17px;
	line-height: 1.6;
	margin: 1.6em 0;
	padding: 16px 20px;
}

.entry-content .lf-note p {
	margin: 0 0 0.6em;
}

.entry-content .lf-note > :last-child {
	margin-bottom: 0;
}

.lf-note strong:first-child {
	color: var(--lf-teal-dark);
}

.entry-content .lf-note a {
	color: var(--lf-teal-dark);
}

.lf-note--warn {
	background: var(--lf-amber-bg);
	border-left-color: var(--lf-amber);
}

.lf-note--warn strong:first-child {
	color: #8a5a00;
}

.entry-content .lf-note--warn a {
	color: #7a4f00;
}

/* --- Table of contents ---------------------------------------------------- */
.lf-toc {
	background: var(--lf-aqua-50);
	border: 1px solid var(--lf-border);
	border-radius: var(--lf-radius);
	margin: 1.8em 0 2.2em;
	padding: 18px 24px 14px;
}

.entry-content .lf-toc__title,
.lf-toc__title {
	color: var(--lf-navy);
	font: 800 13px/1.2 var(--lf-font-head);
	letter-spacing: 0.1em;
	margin: 0 0 12px;
	text-transform: uppercase;
}

.entry-content .lf-toc ol,
.lf-toc ol {
	-webkit-column-gap: 32px;
	column-gap: 32px;
	counter-reset: lftoc;
	list-style: none;
	margin: 0;
	padding: 0;
}

.entry-content .lf-toc li,
.lf-toc li {
	-webkit-column-break-inside: avoid;
	break-inside: avoid;
	counter-increment: lftoc;
	font-size: 16.5px;
	line-height: 1.4;
	margin: 0;
	padding: 6px 0 6px 34px;
	position: relative;
}

.lf-toc li::before {
	background: #fff;
	border: 1.5px solid #bfe0e4;
	border-radius: 50%;
	color: var(--lf-teal-dark);
	content: counter(lftoc);
	font: 800 12px/21px var(--lf-font-head);
	height: 24px;
	left: 0;
	position: absolute;
	text-align: center;
	top: 5px;
	width: 24px;
}

.entry-content .lf-toc a,
.lf-toc a {
	color: var(--lf-navy);
	text-decoration: none;
}

.entry-content .lf-toc a:hover,
.entry-content .lf-toc a:focus,
.lf-toc a:hover {
	color: var(--lf-teal-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.lf-toc li ol {
	margin-top: 4px;
}

/* --- Data tables ---------------------------------------------------------- */
.lf-table-wrap {
	-webkit-overflow-scrolling: touch;
	border: 1px solid var(--lf-border);
	border-radius: var(--lf-radius);
	box-shadow: var(--lf-shadow);
	margin: 1.8em 0;
	max-width: 100%;
	overflow-x: auto;
	/* scroll shadows */
	background:
		linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) left center / 40px 100% no-repeat local,
		linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)) right center / 40px 100% no-repeat local,
		radial-gradient(farthest-side at 0 50%, rgba(15, 45, 68, 0.18), rgba(15, 45, 68, 0)) left center / 14px 100% no-repeat scroll,
		radial-gradient(farthest-side at 100% 50%, rgba(15, 45, 68, 0.18), rgba(15, 45, 68, 0)) right center / 14px 100% no-repeat scroll;
	background-color: #fff;
}

.lf-table {
	border: 0;
	border-collapse: collapse;
	font-size: 16px;
	line-height: 1.45;
	margin: 0;
	min-width: 560px;
	width: 100%;
}

.lf-table caption {
	caption-side: bottom;
	color: var(--lf-muted);
	font-size: 14px;
	line-height: 1.45;
	margin: 0;
	padding: 10px 16px 12px;
	text-align: left;
}

.lf-table thead th {
	background: var(--lf-navy);
	color: #fff;
	font-family: var(--lf-font-head);
	font-size: 14.5px;
	font-weight: 700;
	padding: 12px 16px;
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	vertical-align: bottom;
	white-space: nowrap;
}

.lf-table td,
.lf-table tbody th {
	border-top: 1px solid var(--lf-border);
	padding: 11px 16px;
	vertical-align: top;
}

.lf-table tbody th,
.lf-table td:first-child {
	color: var(--lf-navy);
	font-weight: 700;
}

.lf-table tbody tr:nth-child(even) {
	background: rgba(234, 246, 247, 0.6);
}

.lf-table tbody tr:hover {
	background: var(--lf-aqua-light);
}

.lf-table a {
	font-weight: 600;
}

/* --- Screenshot frame ----------------------------------------------------- */
.lf-shot {
	background: #fff;
	border: 1px solid var(--lf-border-strong);
	border-radius: 12px;
	box-shadow: 0 2px 4px rgba(15, 45, 68, 0.05), 0 22px 44px -22px rgba(15, 45, 68, 0.45);
	margin: 2em 0;
	overflow: hidden;
	padding-top: 32px;
	position: relative;
}

.lf-shot::before {
	background:
		radial-gradient(circle, #ff6159 5px, transparent 5.5px) 12px 50% / 18px 18px no-repeat,
		radial-gradient(circle, #ffbd2e 5px, transparent 5.5px) 30px 50% / 18px 18px no-repeat,
		radial-gradient(circle, #28c941 5px, transparent 5.5px) 48px 50% / 18px 18px no-repeat,
		linear-gradient(#f2f5f7, #e9eef1);
	border-bottom: 1px solid #dde5e9;
	content: "";
	height: 32px;
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.lf-shot::after {
	background: #fff;
	border: 1px solid #dde5e9;
	border-radius: 6px;
	content: "";
	height: 18px;
	left: 84px;
	max-width: 420px;
	position: absolute;
	right: 30%;
	top: 7px;
}

.entry-content .lf-shot img,
.lf-shot img {
	border-radius: 0;
	display: block;
	height: auto;
	max-width: 100%;
	width: 100%;
}

.lf-shot figcaption {
	background: #fff;
	border-top: 1px solid var(--lf-border);
	color: var(--lf-muted);
	font-size: 14px;
	line-height: 1.45;
	padding: 10px 16px;
}

/* --- Content images ------------------------------------------------------- */
.lf-img {
	margin: 6px 0 22px;
	max-width: 100%;
}

.lf-img.alignleft {
	float: left;
	margin: 6px 28px 14px 0;
	max-width: 45%;
}

.lf-img.alignright {
	float: right;
	margin: 6px 0 14px 28px;
	max-width: 45%;
}

.lf-img.aligncenter {
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.entry-content .lf-img img,
.lf-img img {
	border-radius: 10px;
	display: block;
	height: auto;
	max-width: 100%;
}

.lf-img figcaption {
	color: var(--lf-muted);
	font-size: 13.5px;
	line-height: 1.4;
	margin-top: 7px;
}

/* Keep headings and boxes from wrapping awkwardly around floats */
.entry-content .lf-cta,
.entry-content .lf-facts,
.entry-content .lf-proscons,
.entry-content .lf-table-wrap,
.entry-content .lf-shot,
.entry-content .lf-toc,
.entry-content .lf-calc,
.entry-content .lf-cards {
	clear: both;
}

/* --- Disclaimer ----------------------------------------------------------- */
.entry-content .lf-disclaimer,
.lf-disclaimer {
	border-top: 1px solid var(--lf-border);
	clear: both;
	color: var(--lf-muted);
	font-size: 14.5px;
	line-height: 1.55;
	margin: 3em 0 0;
	padding-top: 18px;
}

/* ==========================================================================
   8. Homepage helpers
   ========================================================================== */

.lf-hero {
	background:
		radial-gradient(circle at 100% 0, rgba(63, 193, 201, 0.22) 0, rgba(63, 193, 201, 0) 42%),
		linear-gradient(135deg, #f3fbfb 0%, var(--lf-aqua-light) 60%, #ddf2f4 100%);
	border: 1px solid #d3ebee;
	border-radius: 20px;
	margin: 0 0 2.2em;
	overflow: hidden;
	padding: 30px 32px 28px;
	position: relative;
}

.lf-hero::after {
	border: 16px solid rgba(63, 193, 201, 0.16);
	border-radius: 50%;
	content: "";
	height: 230px;
	pointer-events: none;
	position: absolute;
	right: -70px;
	top: -80px;
	width: 230px;
}

.lf-hero > * {
	position: relative;
	z-index: 1;
}

.entry-content .lf-hero h2,
.lf-hero h2 {
	font-size: 26px;
	margin: 0 0 10px;
}

.entry-content .lf-hero > h2::before {
	display: none;
}

.entry-content .lf-hero p,
.lf-hero p {
	font-size: 19px;
	margin: 0 0 14px;
	max-width: 620px;
}

.lf-hero__actions,
.entry-content .lf-hero__actions,
.entry-content .lf-hero p.lf-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 22px 0 0;
	max-width: none;
}

.lf-hero__points,
.entry-content .lf-hero__points {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	list-style: none;
	margin: 16px 0 0;
	padding: 0;
}

.entry-content .lf-hero__points li {
	color: var(--lf-navy);
	font-size: 16px;
	font-weight: 600;
	margin: 0;
	padding: 0 0 0 26px;
	position: relative;
}

.lf-hero__points li::before {
	color: var(--lf-teal);
	content: "\2713";
	font-weight: 800;
	left: 0;
	position: absolute;
}

/* Cards */
.lf-cards,
.entry-content .lf-cards {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	list-style: none;
	margin: 1.4em 0 2em;
	padding: 0;
}

.entry-content .lf-cards > li {
	margin: 0;
	padding: 0;
}

/* Four cards read better as 2 x 2 than 3 + 1 */
.lf-cards:has(> :nth-child(4):last-child) {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lf-card,
.entry-content a.lf-card,
.entry-content a.lf-card:visited {
	background: #fff;
	border: 1px solid var(--lf-border);
	border-radius: var(--lf-radius);
	color: var(--lf-navy);
	display: flex;
	flex-direction: column;
	gap: 4px;
	height: 100%;
	padding: 18px 44px 18px 20px;
	position: relative;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.lf-card::after {
	color: var(--lf-teal);
	content: "\2192";
	font-size: 20px;
	font-weight: 700;
	position: absolute;
	right: 18px;
	top: 16px;
	transition: transform 0.15s ease;
}

.lf-card:hover,
.lf-card:focus-within,
.entry-content a.lf-card:hover,
.entry-content a.lf-card:focus {
	border-color: #a9d9de;
	box-shadow: var(--lf-shadow);
	color: var(--lf-navy);
	text-decoration: none;
	transform: translateY(-2px);
}

.lf-card:hover::after {
	transform: translateX(3px);
}

.lf-card__title,
.entry-content .lf-card__title,
.entry-content .lf-card h3 {
	color: var(--lf-navy);
	display: block;
	font: 800 18px/1.3 var(--lf-font-head);
	letter-spacing: -0.01em;
	margin: 0;
}

.lf-card__text,
.entry-content .lf-card__text,
.entry-content .lf-card p {
	color: var(--lf-muted);
	display: block;
	font-size: 15.5px;
	line-height: 1.5;
	margin: 0;
}

/* Card that wraps a link (div.lf-card > h3 > a): make the whole card clickable */
.entry-content .lf-card h3 a,
.entry-content .lf-card .lf-card__title a {
	color: inherit;
	text-decoration: none;
}

.entry-content .lf-card h3 a::before,
.entry-content .lf-card .lf-card__title a::before {
	content: "";
	inset: 0;
	position: absolute;
}

/* Badges */
.lf-badge {
	background: var(--lf-aqua-light);
	border-radius: 999px;
	color: var(--lf-teal-dark);
	display: inline-block;
	font: 800 12.5px/1 var(--lf-font-head);
	letter-spacing: 0.02em;
	padding: 6px 10px;
	vertical-align: middle;
	white-space: nowrap;
}

.lf-badge--coral {
	background: #fde8e2;
	color: #a8361a;
}

.lf-badge--navy {
	background: var(--lf-navy);
	color: #fff;
}

.lf-badge--green {
	background: var(--lf-green-bg);
	color: #146637;
}

.lf-card .lf-badge {
	align-self: flex-start;
	margin-bottom: 6px;
}

/* Steps */
.lf-steps,
.entry-content .lf-steps {
	counter-reset: lfstep;
	list-style: none;
	margin: 1.6em 0 2em;
	padding: 0;
}

.entry-content .lf-steps > li,
.lf-steps > li {
	counter-increment: lfstep;
	margin: 0;
	min-height: 40px;
	padding: 4px 0 20px 58px;
	position: relative;
}

.lf-steps > li::before {
	background: var(--lf-navy);
	border-radius: 50%;
	color: #fff;
	content: counter(lfstep);
	font: 800 16px/40px var(--lf-font-head);
	height: 40px;
	left: 0;
	position: absolute;
	text-align: center;
	top: 0;
	width: 40px;
}

.lf-steps > li::after {
	background: var(--lf-border);
	bottom: 4px;
	content: "";
	left: 19px;
	position: absolute;
	top: 46px;
	width: 2px;
}

.lf-steps > li:last-child::after {
	display: none;
}

.lf-steps > li > strong:first-child,
.lf-steps > li > h3:first-child {
	display: block;
	font-family: var(--lf-font-head);
	font-size: 18px;
	margin: 6px 0 4px;
}

/* ==========================================================================
   9. Calculator (lf-calc)
   Expected markup (flexible):
   <div class="lf-calc">
     <form class="lf-calc__form">
       <div class="lf-calc__field"><label for="…">…</label><select|input id="…"></div> …
     </form>
     <div class="lf-calc__results" aria-live="polite">
       <div class="lf-calc__result"><span class="lf-calc__label">…</span><strong class="lf-calc__value">… €</strong></div> …
     </div>
     <p class="lf-calc__note">…</p>
   </div>
   ========================================================================== */

.lf-calc {
	background: #fff;
	border: 1px solid var(--lf-border);
	border-radius: 18px;
	box-shadow: var(--lf-shadow);
	margin: 2em 0;
	padding: 24px;
}

.lf-calc form,
.lf-calc__form,
.lf-calc__grid {
	display: grid;
	gap: 16px 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
}

.lf-calc__field,
.lf-calc form > p,
.lf-calc form > div {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	min-width: 0;
}

.lf-calc__field--full,
.lf-calc fieldset {
	grid-column: 1 / -1;
}

.lf-calc fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

.lf-calc label,
.lf-calc legend {
	color: var(--lf-navy);
	font: 700 15px/1.3 var(--lf-font-head);
}

.lf-calc input[type="number"],
.lf-calc input[type="text"],
.lf-calc input[type="email"],
.lf-calc select {
	-webkit-appearance: none;
	appearance: none;
	background-color: #fff;
	border: 1.5px solid var(--lf-border-strong);
	border-radius: 10px;
	color: var(--lf-navy);
	font-size: 17px;
	height: 48px;
	padding: 0 14px;
	width: 100%;
}

.lf-calc select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230b7a85' stroke-width='2'/%3E%3C/svg%3E");
	background-position: right 14px center;
	background-repeat: no-repeat;
	background-size: 12px 8px;
	padding-right: 38px;
}

.lf-calc input:focus,
.lf-calc select:focus {
	border-color: var(--lf-teal);
	box-shadow: 0 0 0 3px rgba(63, 193, 201, 0.35);
	outline: 0;
}

.lf-calc input[type="range"] {
	accent-color: var(--lf-teal);
	border: 0;
	padding: 0;
	width: 100%;
}

.lf-calc input[type="checkbox"],
.lf-calc input[type="radio"] {
	accent-color: var(--lf-teal);
	height: 18px;
	width: 18px;
}

.lf-calc__hint {
	color: var(--lf-muted);
	font-size: 14px;
	line-height: 1.4;
}

.lf-calc button,
.lf-calc input[type="submit"] {
	background: var(--lf-cta);
	font-size: 17px;
	grid-column: 1 / -1;
	justify-self: start;
	min-height: 50px;
	padding: 12px 26px;
}

.lf-calc button:hover,
.lf-calc input[type="submit"]:hover {
	background: var(--lf-cta-hover);
}

.lf-calc__results {
	background: var(--lf-navy);
	border-radius: 14px;
	color: #fff;
	display: grid;
	gap: 1px;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	margin-top: 22px;
	overflow: hidden;
}

.lf-calc__result {
	background: var(--lf-navy);
	box-shadow: 1px 0 0 rgba(255, 255, 255, 0.12);
	padding: 18px 20px;
}

.lf-calc__label {
	color: rgba(255, 255, 255, 0.78);
	display: block;
	font-size: 14.5px;
	line-height: 1.35;
	margin-bottom: 6px;
}

.lf-calc__value,
.lf-calc__results strong,
.lf-calc output {
	color: #fff;
	display: block;
	font: 800 32px/1.1 var(--lf-font-head);
	letter-spacing: -0.02em;
}

.lf-calc__result--highlight .lf-calc__value,
.lf-calc__results .lf-calc__value--accent {
	color: var(--lf-aqua);
}

.entry-content .lf-calc__note,
.lf-calc__note {
	color: var(--lf-muted);
	font-size: 14px;
	line-height: 1.5;
	margin: 14px 0 0;
}

/* ==========================================================================
   10. Footer
   ========================================================================== */

.site-footer {
	background: var(--lf-navy);
	color: rgba(255, 255, 255, 0.78);
	font-size: 15px;
	margin-top: 56px;
	text-align: left;
}

.site-footer a,
.site-footer a:visited {
	color: rgba(255, 255, 255, 0.86);
}

.site-footer a:hover,
.site-footer a:focus {
	color: #fff;
}

.lf-footer {
	display: grid;
	gap: 40px 56px;
	grid-template-columns: minmax(240px, 1.15fr) 3fr;
	margin: 0 auto;
	max-width: var(--lf-wrap);
	padding: 56px 24px 40px;
}

.lf-footer__logo {
	display: inline-block;
}

.lf-footer__logo .site-logo__svg {
	height: 40px;
}

.lf-footer__text {
	color: rgba(255, 255, 255, 0.74);
	font-size: 15px;
	line-height: 1.6;
	margin: 18px 0 0;
	max-width: 360px;
}

.lf-footer__menu {
	display: grid;
	gap: 28px 24px;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.lf-footer__menu > li > a,
.lf-footer__menu > li > a:visited,
.lf-footer__heading {
	color: var(--lf-aqua);
	display: block;
	font: 800 13px/1.3 var(--lf-font-head);
	letter-spacing: 0.09em;
	margin: 4px 0 14px;
	text-decoration: none;
	text-transform: uppercase;
}

.lf-footer__menu .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.lf-footer__menu .sub-menu li {
	line-height: 1.35;
	margin: 0 0 10px;
}

.lf-footer__menu .sub-menu a {
	text-decoration: none;
}

.lf-footer__menu .sub-menu a:hover,
.lf-footer__menu .sub-menu a:focus {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-info {
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.64);
	display: flex;
	flex-wrap: wrap;
	font-size: 14px;
	gap: 6px 24px;
	justify-content: space-between;
	margin: 0 auto;
	max-width: calc(var(--lf-wrap) - 48px);
	padding: 18px 0 30px;
}

.site-info p {
	margin: 0;
}

/* Footer widgets are not used by this theme. */
.site-footer .sidebar-container {
	display: none;
}

/* ==========================================================================
   11. Misc
   ========================================================================== */

/* Hide the comments area when comments are closed and there are none. */
.comments-closed .comments-area {
	display: none;
}

.comments-area {
	border-top: 1px solid var(--lf-border);
	margin: 0 auto;
	padding-top: 24px;
}

.comments-title {
	color: var(--lf-navy);
	font: 800 24px/1.3 var(--lf-font-head);
}

.archive-header,
.page-header {
	background: var(--lf-aqua-light);
}

.archive-title,
.page-title {
	font: 800 28px/1.25 var(--lf-font-head);
	color: var(--lf-navy);
}

.paging-navigation,
.post-navigation {
	background: var(--lf-aqua-50);
}

.paging-navigation .meta-nav {
	background-color: var(--lf-teal);
}

.paging-navigation a:hover .meta-nav {
	background-color: var(--lf-teal-dark);
}

.navigation a,
.post-navigation a {
	color: var(--lf-teal);
}

.error404 .page-wrapper {
	background-color: var(--lf-aqua-light);
}

.error404 .page-title,
.error404 .page-title:before {
	color: var(--lf-navy);
	font-family: var(--lf-font-head);
}

.error404 .page-title:before {
	color: rgba(15, 45, 68, 0.06);
}

.page-links a {
	background: var(--lf-teal);
	border-color: var(--lf-teal);
}

.page-links a:hover {
	color: var(--lf-teal);
}

.screen-reader-text:focus {
	color: var(--lf-navy);
}

/* ==========================================================================
   12. Responsive
   ========================================================================== */

@media (max-width: 1100px) {
	.site-description {
		max-width: 220px;
	}
}

@media (max-width: 960px) {
	.lf-header-cta {
		padding: 10px 14px;
	}

	.site-description {
		display: none;
	}

	.lf-footer {
		grid-template-columns: 1fr;
	}
}

/* Mobile navigation (toggle) */
@media (max-width: 860px) {
	.main-navigation {
		flex-wrap: wrap;
		min-height: 52px;
		padding: 0 var(--lf-gutter);
	}

	.menu-toggle {
		-webkit-appearance: none;
		appearance: none;
		align-items: center;
		background: transparent;
		border: 0;
		border-radius: 8px;
		color: #fff;
		cursor: pointer;
		display: inline-flex;
		font: 800 16px/1 var(--lf-font-head);
		gap: 10px;
		margin: 0 0 0 -8px;
		min-height: 44px;
		padding: 8px 10px 8px 8px;
	}

	.menu-toggle:hover,
	.menu-toggle:focus {
		background: rgba(255, 255, 255, 0.08);
	}

	.menu-toggle:active {
		background: rgba(255, 255, 255, 0.12);
		padding: 8px 10px 8px 8px;
	}

	.menu-toggle::after,
	.menu-toggle:after,
	.toggled-on .menu-toggle:after {
		content: none;
		display: none;
	}

	.menu-toggle__icon,
	.menu-toggle__icon::before,
	.menu-toggle__icon::after {
		background: currentColor;
		border-radius: 2px;
		display: block;
		height: 2.5px;
		position: relative;
		transition: transform 0.2s ease, background-color 0.2s ease;
		width: 22px;
	}

	.menu-toggle__icon::before,
	.menu-toggle__icon::after {
		content: "";
		left: 0;
		position: absolute;
	}

	.menu-toggle__icon::before {
		top: -7px;
	}

	.menu-toggle__icon::after {
		top: 7px;
	}

	.toggled-on .menu-toggle__icon {
		background: transparent;
	}

	.toggled-on .menu-toggle__icon::before {
		transform: translateY(7px) rotate(45deg);
	}

	.toggled-on .menu-toggle__icon::after {
		transform: translateY(-7px) rotate(-45deg);
	}

	.main-navigation > div:not(.search-form),
	.main-navigation > ul.nav-menu {
		flex: 1 0 100%;
		order: 3;
	}

	.site-header .search-form {
		order: 2;
	}

	ul.nav-menu,
	div.nav-menu > ul {
		display: none;
	}

	.toggled-on ul.nav-menu,
	.toggled-on div.nav-menu > ul,
	.toggled-on .nav-menu,
	.toggled-on .nav-menu > ul {
		border-top: 1px solid rgba(255, 255, 255, 0.12);
		display: block;
		margin: 0;
		max-height: calc(100vh - 120px);
		max-height: calc(100dvh - 120px);
		overflow-y: auto;
		padding: 6px 0 16px;
		width: 100%;
	}

	.toggled-on li,
	.toggled-on .children,
	.nav-menu li {
		display: block;
	}

	.nav-menu li a,
	.toggled-on .nav-menu li a {
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		font-size: 17px;
		padding: 14px 52px 14px 4px;
	}

	.nav-menu .current_page_item > a,
	.nav-menu .current-menu-item > a,
	.nav-menu .current_page_ancestor > a,
	.nav-menu .current-menu-ancestor > a,
	.toggled-on .nav-menu .current_page_item > a,
	.toggled-on .nav-menu .current-menu-item > a,
	.toggled-on .nav-menu .current_page_ancestor > a,
	.toggled-on .nav-menu .current-menu-ancestor > a {
		box-shadow: inset 3px 0 0 var(--lf-aqua);
		padding-left: 14px;
	}

	.toggled-on .nav-menu .sub-menu .current-menu-item > a,
	.toggled-on .nav-menu .sub-menu .current_page_item > a,
	.toggled-on .nav-menu .children .current_page_item > a {
		box-shadow: none;
		padding-left: 10px;
	}

	.nav-menu > li.menu-item-has-children > a::after,
	.nav-menu > li.page_item_has_children > a::after,
	div.nav-menu > ul > li.page_item_has_children > a::after,
	.nav-menu .sub-menu .menu-item-has-children > a::after,
	.nav-menu .children .page_item_has_children > a::after {
		display: none;
	}

	.nav-menu .sub-menu,
	.nav-menu .children,
	.toggled-on .nav-menu li > ul,
	ul.nav-menu li:hover > ul,
	.nav-menu ul li:hover > ul,
	ul.nav-menu .focus > ul,
	.nav-menu .focus > ul,
	.nav-menu li:focus-within > ul {
		background: transparent;
		border: 0;
		border-left: 2px solid rgba(63, 193, 201, 0.45);
		border-radius: 0;
		box-shadow: none;
		display: block;
		float: none;
		left: auto;
		margin: 4px 0 10px 6px;
		opacity: 1;
		padding: 0 0 0 10px;
		position: static;
		top: auto;
		transform: none;
		visibility: visible;
		width: auto;
	}

	.has-submenu-toggles .nav-menu li > ul,
	.has-submenu-toggles.toggled-on .nav-menu li > ul,
	.has-submenu-toggles .nav-menu li:hover > ul,
	.has-submenu-toggles .nav-menu .focus > ul,
	.has-submenu-toggles .nav-menu li:focus-within > ul {
		display: none;
	}

	.has-submenu-toggles .nav-menu li.submenu-open > ul,
	.has-submenu-toggles.toggled-on .nav-menu li.submenu-open > ul {
		display: block;
	}

	ul.nav-menu ul a,
	.nav-menu ul ul a,
	.toggled-on .nav-menu li > ul a {
		border-bottom: 0;
		border-radius: 6px;
		color: rgba(255, 255, 255, 0.88);
		font-size: 16px;
		font-weight: 600;
		padding: 11px 44px 11px 10px;
		width: auto;
	}

	.toggled-on .nav-menu li:hover > a,
	.toggled-on .nav-menu .children a {
		background-color: transparent;
		color: #fff;
	}

	.toggled-on .nav-menu ul li:hover > a,
	.toggled-on .nav-menu .sub-menu a {
		color: rgba(255, 255, 255, 0.88);
	}

	.toggled-on .nav-menu li a:hover,
	.toggled-on .nav-menu ul a:hover,
	.nav-menu .sub-menu li:hover > a,
	.nav-menu .children li:hover > a,
	ul.nav-menu ul a:hover,
	ul.nav-menu ul a:focus,
	.nav-menu ul ul a:hover,
	.nav-menu ul ul a:focus {
		background-color: rgba(255, 255, 255, 0.08);
		color: #fff;
	}

	.nav-menu .sub-menu .current-menu-item > a,
	.nav-menu .sub-menu .current_page_item > a,
	.nav-menu .children .current_page_item > a {
		background: transparent;
		color: var(--lf-aqua);
	}

	.submenu-toggle {
		align-items: center;
		background: transparent;
		border: 0;
		border-radius: 8px;
		color: #fff;
		cursor: pointer;
		display: flex;
		height: 44px;
		justify-content: center;
		padding: 0;
		position: absolute;
		right: 0;
		top: 3px;
		width: 44px;
	}

	.submenu-toggle:hover,
	.submenu-toggle:focus {
		background: rgba(255, 255, 255, 0.1);
	}

	.submenu-toggle:active {
		background: rgba(255, 255, 255, 0.14);
		border: 0;
		padding: 0;
	}

	.submenu-toggle::before {
		border-bottom: 2px solid currentColor;
		border-right: 2px solid currentColor;
		content: "";
		height: 8px;
		margin-top: -4px;
		transform: rotate(45deg);
		transition: transform 0.2s ease;
		width: 8px;
	}

	.submenu-open > .submenu-toggle::before {
		margin-top: 4px;
		transform: rotate(-135deg);
	}

	.sub-menu .submenu-toggle {
		top: 0;
	}

	.site-header .search-field:focus {
		width: 190px;
	}

	.lf-header-cta {
		display: none;
	}
}

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

@media (max-width: 767px) {
	.entry-content img.alignleft,
	.entry-content .wp-caption.alignleft,
	.entry-content img.alignright,
	.entry-content .wp-caption.alignright {
		margin-left: 0;
		margin-right: 0;
	}
}

@media (max-width: 643px) {
	#content .entry-header,
	#content .entry-content,
	#content .entry-summary,
	#content footer.entry-meta,
	#content .featured-gallery,
	.comments-area .comments-title,
	.comments-area .comment-list,
	.comments-area .comment-navigation,
	.comment-respond,
	.paging-navigation .nav-links,
	.sidebar .site-info {
		padding-left: var(--lf-gutter);
		padding-right: var(--lf-gutter);
	}

	.entry-title,
	.format-chat .entry-title,
	.format-image .entry-title,
	.format-gallery .entry-title,
	.format-video .entry-title {
		font-size: 31px;
		font-weight: 800;
		line-height: 1.15;
	}

	.site-title {
		font-size: 1rem;
	}
}

@media (max-width: 640px) {
	body,
	.entry-content,
	.entry-summary {
		font-size: 17px;
	}

	.entry-content > p:first-child {
		font-size: 18.5px;
	}

	.hentry {
		padding-top: 28px;
	}

	.site-branding {
		padding: 12px var(--lf-gutter);
	}

	.site-logo__svg {
		height: 36px;
	}

	.entry-content h2 {
		font-size: 24px;
		margin-top: 1.9em;
	}

	.entry-content h3 {
		font-size: 19px;
	}

	.lf-cta {
		align-items: stretch;
		flex-direction: column;
		padding: 20px 18px 18px 22px;
	}

	.lf-cta__action .lf-btn,
	.entry-content .lf-cta__action a.lf-btn {
		width: 100%;
	}

	.lf-proscons {
		grid-template-columns: 1fr;
	}

	.lf-facts th,
	.lf-facts td {
		padding: 10px 14px;
	}

	.lf-facts th {
		width: 40%;
	}

	.lf-facts table,
	.lf-table {
		font-size: 15px;
	}

	.lf-table thead th {
		font-size: 13.5px;
		padding: 10px 12px;
	}

	.lf-table td,
	.lf-table tbody th {
		padding: 9px 12px;
	}

	/* keep the caption readable while the table scrolls sideways */
	.lf-table caption {
		left: 0;
		max-width: calc(100vw - 2 * var(--lf-gutter) - 2px);
		position: -webkit-sticky;
		position: sticky;
	}

	.lf-toc {
		padding: 16px 16px 10px;
	}

	.lf-img.alignleft,
	.lf-img.alignright,
	.entry-content .wp-caption.alignleft,
	.entry-content .wp-caption.alignright,
	.entry-content img.alignleft,
	.entry-content img.alignright {
		float: none;
		margin: 6px 0 20px;
		max-width: 100%;
	}

	.lf-img.alignleft img,
	.lf-img.alignright img,
	.entry-content .wp-caption.alignleft img,
	.entry-content .wp-caption.alignright img {
		width: 100%;
	}

	.entry-content .wp-caption {
		width: auto !important; /* overrides inline width from [caption] */
	}

	.lf-shot {
		margin-left: calc(-1 * var(--lf-gutter) + 4px);
		margin-right: calc(-1 * var(--lf-gutter) + 4px);
		padding-top: 24px;
	}

	.lf-shot::before {
		background:
			radial-gradient(circle, #ff6159 3.5px, transparent 4px) 8px 50% / 13px 13px no-repeat,
			radial-gradient(circle, #ffbd2e 3.5px, transparent 4px) 21px 50% / 13px 13px no-repeat,
			radial-gradient(circle, #28c941 3.5px, transparent 4px) 34px 50% / 13px 13px no-repeat,
			linear-gradient(#f2f5f7, #e9eef1);
		height: 24px;
	}

	.lf-shot::after {
		height: 13px;
		left: 58px;
		right: 18%;
		top: 5px;
	}

	.lf-hero {
		border-radius: 16px;
		padding: 22px 18px 20px;
	}

	.entry-content .lf-hero h2,
	.lf-hero h2 {
		font-size: 22px;
	}

	.entry-content .lf-hero p,
	.lf-hero p {
		font-size: 17.5px;
	}

	.lf-hero__actions .lf-btn {
		width: 100%;
	}

	.lf-cards,
	.entry-content .lf-cards,
	.lf-cards:has(> :nth-child(4):last-child) {
		grid-template-columns: 1fr;
	}

	.lf-calc {
		padding: 18px 16px;
	}

	.lf-calc form,
	.lf-calc__form,
	.lf-calc__grid {
		grid-template-columns: 1fr;
	}

	.lf-calc button,
	.lf-calc input[type="submit"] {
		justify-self: stretch;
	}

	.lf-calc__results {
		grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
	}

	.lf-calc__result {
		padding: 14px 12px;
	}

	.lf-calc__label {
		font-size: 13px;
	}

	.lf-calc__value,
	.lf-calc__results strong,
	.lf-calc output {
		font-size: 22px;
	}

	.lf-footer {
		gap: 32px;
		padding: 40px var(--lf-gutter) 28px;
	}

	.lf-footer__menu {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-info {
		max-width: none;
		padding: 16px var(--lf-gutter) 26px;
	}
}

@media (min-width: 700px) {
	.lf-toc ol {
		-webkit-columns: 2;
		columns: 2;
	}

	.lf-toc ol ol {
		-webkit-columns: 1;
		columns: 1;
	}
}

@media (min-width: 641px) and (max-width: 960px) {
	.lf-footer__menu {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/* ==========================================================================
   13. Print
   ========================================================================== */

@media print {
	.navbar,
	.lf-header-cta,
	.site-footer .lf-footer__nav,
	.lf-cta__action {
		display: none !important;
	}

	.lf-cta,
	.lf-facts,
	.lf-table-wrap,
	.lf-shot,
	.lf-calc {
		box-shadow: none;
	}

	.site-footer {
		background: #fff;
		color: #333;
	}
}

/* ==========================================================================
   14. Fixes after launch
   ========================================================================== */

/* Custom anchor links to the front page (/#linssityypit, /#oppaat) should not look "current". */
.nav-menu > .menu-item-type-custom.current-menu-item > a {
	box-shadow: none;
}

@media (max-width: 859px) {
	.nav-menu > .menu-item-type-custom.current-menu-item > a,
	.toggled-on .nav-menu > .menu-item-type-custom.current-menu-item > a {
		box-shadow: none;
		padding-left: 4px;
	}
}

/* Calculator markup used on /piilolinssilaskuri/ */
#lf-calc [hidden] {
	display: none !important;
}

#lf-calc .lf-calc__form {
	display: block;
}

#lf-calc .lf-calc__modes {
	background: var(--lf-aqua-light);
	border-radius: 12px;
	display: inline-flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 22px;
	padding: 5px;
}

#lf-calc .lf-calc__modes .lf-btn {
	background: transparent;
	border: 0;
	border-radius: 9px;
	box-shadow: none;
	color: var(--lf-navy);
	font-size: 15px;
	min-height: 42px;
	padding: 8px 18px;
}

#lf-calc .lf-calc__modes .lf-btn::after {
	display: none;
}

#lf-calc .lf-calc__modes .lf-btn[aria-pressed="true"] {
	background: #fff;
	box-shadow: 0 1px 4px rgba(15, 45, 68, 0.16);
	color: var(--lf-teal-dark);
}

#lf-calc .lf-calc__modes .lf-btn:hover {
	background: rgba(255, 255, 255, 0.7);
}

#lf-calc fieldset.lf-calc__group {
	border: 0;
	border-top: 1px solid var(--lf-border);
	margin: 0 0 18px;
	padding: 14px 0 0;
}

#lf-calc fieldset.lf-calc__group legend {
	color: var(--lf-muted);
	font: 700 13px/1.2 var(--lf-font-head);
	letter-spacing: 0.06em;
	padding: 0 10px 0 0;
	text-transform: uppercase;
}

#lf-calc .lf-calc__grid {
	display: grid;
	gap: 14px 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

#lf-calc .lf-calc__row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

#lf-calc .lf-calc__label {
	color: var(--lf-navy);
	font: 700 15px/1.3 var(--lf-font-head);
	margin: 0;
}

#lf-calc .lf-calc__choices {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	padding-top: 10px;
}

#lf-calc .lf-calc__choices label {
	align-items: center;
	display: inline-flex;
	font: 600 16px/1.3 var(--lf-font-body);
	gap: 8px;
}

#lf-calc .lf-calc__actions {
	margin: 4px 0 0;
}

#lf-calc .lf-calc__result {
	background: var(--lf-navy);
	border-radius: 14px;
	box-shadow: none;
	color: #fff;
	margin-top: 22px;
	padding: 20px 22px 18px;
}

#lf-calc .lf-calc__result h3 {
	color: #fff;
	font-size: 19px;
	margin: 0 0 10px;
}

#lf-calc .lf-calc__result .lf-table-wrap {
	background: transparent;
	border: 0;
	box-shadow: none;
	margin: 0;
}

#lf-calc .lf-calc__table {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	width: 100%;
}

#lf-calc .lf-calc__table tr,
#lf-calc .lf-calc__table tbody tr:nth-child(even),
#lf-calc .lf-calc__table tbody tr:hover {
	background: transparent !important;
}

#lf-calc .lf-calc__table th,
#lf-calc .lf-calc__table td {
	background: transparent !important;
	border: 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.14);
	color: #fff !important;
	font-size: 16px;
	padding: 10px 6px;
	text-align: left;
	vertical-align: top;
}

#lf-calc .lf-calc__table td {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	text-align: right;
	white-space: nowrap;
}

#lf-calc .lf-calc__table thead th {
	color: var(--lf-aqua) !important;
	font: 700 13px/1.3 var(--lf-font-head);
	letter-spacing: 0.03em;
	text-align: right;
}

#lf-calc .lf-calc__table thead th:first-child {
	text-align: left;
}

#lf-calc .lf-calc__table .lf-calc__total th,
#lf-calc .lf-calc__table .lf-calc__total td {
	border-bottom-color: rgba(63, 193, 201, 0.5);
	color: var(--lf-aqua) !important;
	font-size: 20px;
	font-weight: 800;
}

#lf-calc .lf-calc__note {
	color: rgba(255, 255, 255, 0.78);
	font-size: 14.5px;
	line-height: 1.5;
	margin: 12px 0 0;
}

@media (max-width: 600px) {
	#lf-calc .lf-calc__grid {
		grid-template-columns: 1fr;
	}

	#lf-calc .lf-calc__result {
		padding: 16px 14px;
	}

	#lf-calc .lf-calc__table th,
	#lf-calc .lf-calc__table td {
		font-size: 15px;
		padding: 9px 4px;
	}
}

@media (max-width: 600px) {
	#lf-result-cmp .lf-calc__table th,
	#lf-result-cmp .lf-calc__table td {
		font-size: 13px;
		padding: 8px 3px;
		white-space: normal;
	}

	#lf-result-cmp .lf-calc__table .lf-calc__total th,
	#lf-result-cmp .lf-calc__table .lf-calc__total td {
		font-size: 15px;
	}

	#lf-result-cmp .lf-calc__table thead th {
		font-size: 11.5px;
		letter-spacing: 0;
	}
}

#lf-calc .lf-calc__table {
	min-width: 0;
}

@media (max-width: 600px) {
	#lf-result-cmp .lf-table-wrap {
		overflow: visible;
	}

	#lf-result-cmp .lf-calc__table th:first-child {
		width: 30%;
	}
}

@media (max-width: 600px) {
	#lf-result-cmp .lf-calc__table {
		table-layout: fixed;
	}

	#lf-result-cmp .lf-calc__table th:first-child {
		width: 28%;
	}

	#lf-result-cmp .lf-calc__table th,
	#lf-result-cmp .lf-calc__table td {
		font-size: 12.5px;
		hyphens: auto;
		overflow-wrap: anywhere;
		padding: 8px 2px;
	}
}
