/*
Theme Name: TrueResort
Description: Modern look for trueresort.net on top of Puzzles: the same templates, blocks, links and markup; new styles only.
Template: puzzles
Version: 2.0.0
Text Domain: trueresort
*/

/* =====================================================================
   0. Fonts (self-hosted)
   ===================================================================== */
@font-face {
	font-family: 'Onest';
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url(assets/fonts/onest-cyrillic.woff2) format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Onest';
	font-style: normal;
	font-weight: 400 900;
	font-display: swap;
	src: url(assets/fonts/onest-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Unbounded';
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url(assets/fonts/unbounded-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF;
}

/* =====================================================================
   1. Tokens
   ===================================================================== */
:root {
	--tr-bg: #161A2B;            /* deep indigo: evening sky over the Andaman sea */
	--tr-surface: #1F2438;
	--tr-surface-2: #282E46;
	--tr-line: rgba(200, 210, 255, 0.10);
	--tr-line-strong: rgba(200, 210, 255, 0.18);
	--tr-text: #F4F4F1;
	--tr-text-2: #DCDEE8;
	--tr-muted: #AAB0C6;
	--tr-accent: #FFC61A;
	--tr-on-accent: #10131F;
	--tr-radius: 22px;
	--tr-radius-sm: 14px;
	--tr-wrap: 1320px;
	--tr-pad: 32px;
	--tr-header-h: 76px;
	--tr-tap: 44px;
	--tr-font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--tr-logo: 'Unbounded', 'Onest', system-ui, sans-serif;
	--tr-read: 760px;
}

/* =====================================================================
   2. Base
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html body,
html body.custom-background {
	margin: 0;
	background: var(--tr-bg);
	color: var(--tr-text);
	font-family: var(--tr-font);
	font-size: 17px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	overflow-wrap: break-word;
}
a { color: var(--tr-text); text-decoration: none; }
a:hover { color: var(--tr-accent); }
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, h5, h6 { color: var(--tr-text); font-family: var(--tr-font); margin: 0; overflow-wrap: anywhere; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--tr-accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--tr-accent); color: var(--tr-on-accent); }

/* Parts of Puzzles that the new look does not use (no text in them) */
#header_middle_fixed, #advert, .popup_form, #custom_options, .post_format, .post_content_padding,
.top_line, .hatom-extra { display: none !important; }

/* Photos on tiles are not used: tiles are colour cards. The image link stays in the HTML. */
.post_thumb > a:first-child { display: none !important; }

#page { margin: 0 !important; width: 100%; max-width: none; }

/* =====================================================================
   3. Header
   ===================================================================== */
#header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--tr-bg);
	border-bottom: 1px solid var(--tr-line);
}
#header_top_inner {
	max-width: var(--tr-wrap);
	margin: 0 auto;
	padding: 10px var(--tr-pad) 10px calc(var(--tr-pad) + 64px);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 20px;
	min-height: var(--tr-header-h);
}
#header .logo { order: 1; margin: 0 !important; flex: 0 0 auto; }
#header .logo a { display: flex; align-items: center; gap: 12px; min-height: var(--tr-tap); }
#header .logo_title { font-family: var(--tr-logo); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -1px; color: var(--tr-text); }
#header .logo_title .theme_accent { color: var(--tr-accent); }
#header .logo_slogan { font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--tr-muted); }

/* Telegram links (Puzzles "ads block": <div><strong><a><br><a><br><p><a></strong></div>) */
#ads_block_top { order: 2; margin-left: auto; margin-right: 56px; min-width: 0; }
#ads_block_top > div { display: flex; gap: 6px; flex-wrap: nowrap; }
#ads_block_top strong, #ads_block_top p { display: contents; font-weight: inherit; }
#ads_block_top br { display: none; }
#ads_block_top a.shapka {
	flex: 0 0 auto;
	min-height: var(--tr-tap);
	padding: 0 16px;
	border-radius: 999px;
	border: 1px solid var(--tr-line-strong);
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	color: var(--tr-text);
}
#ads_block_top a.shapka:hover { border-color: var(--tr-accent); color: var(--tr-accent); }
#ads_block_top a.shapka i { display: none; }

/* Breadcrumbs: second line of the header */
#breadcrumbs_area { order: 3; flex: 0 0 100%; min-width: 0; max-width: 100%; }
.breadcrumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; font-size: 14px; color: var(--tr-muted); min-width: 0; max-width: 100%; overflow: hidden; }
.breadcrumbs li { display: flex; align-items: center; min-width: 0; }
.breadcrumbs li + li::before { content: '/'; margin-right: 8px; }
.breadcrumbs li a { display: inline-flex; align-items: center; min-height: 32px; color: var(--tr-accent); font-weight: 700; }
.breadcrumbs li.current { color: var(--tr-text-2); }

/* Search: icon button + full-width bar */
#header_middle_wrapper, #header_middle, #header_middle_inner { position: static; height: 0; }
#mainmenu_area {
	position: absolute;
	top: calc(var(--tr-header-h) / 2 - var(--tr-tap) / 2);
	right: max(var(--tr-pad), calc((100% - var(--tr-wrap)) / 2 + var(--tr-pad)));
}
.search_link {
	width: var(--tr-tap);
	height: var(--tr-tap);
	border-radius: 50%;
	border: 1px solid var(--tr-line-strong);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--tr-text);
	font-size: 0;
}
.search_link b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search_link::before {
	content: '';
	width: 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.search_link:hover { border-color: var(--tr-accent); color: var(--tr-accent); }
.search_form_area {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 120;
	padding: 14px var(--tr-pad);
	background: var(--tr-bg);
	border-bottom: 1px solid var(--tr-line);
	display: none;
	align-items: center;
	gap: 10px;
}
.search_form_area.shown { display: flex; }
body:has(.search_form_area.shown) #sidemenu_link { visibility: hidden; } /* the open search bar is not covered by the menu button */
.search_form_area .search_form { flex: 1 1 auto; min-width: 0; }
.search_form_area .search_field {
	width: 100%;
	height: 52px;
	border-radius: 999px;
	border: 1px solid var(--tr-line-strong);
	background: var(--tr-surface) !important;
	color: var(--tr-text);
	padding: 0 22px;
	font: inherit;
	font-size: 17px;
	-webkit-appearance: none;
	appearance: none;
}
.search_form_area .search_field::placeholder { color: var(--tr-muted); }
.search_close { flex: 0 0 auto; width: var(--tr-tap); height: var(--tr-tap); display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--tr-text); }

/* =====================================================================
   4. Side menu (burger). Puzzles JS animates #sidemenu_area "left"; it is hidden by a negative margin.
   ===================================================================== */
#sidemenu_area {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 110;
	width: min(340px, 86vw);
	margin-left: calc(-1 * min(340px, 86vw));
	background: var(--tr-surface);
	border-right: 1px solid var(--tr-line);
}
#sidemenu_link {
	position: absolute;
	top: calc(var(--tr-header-h) / 2 - 24px);
	left: calc(100% + max(var(--tr-pad), calc((100vw - var(--tr-wrap)) / 2 + var(--tr-pad))));
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--tr-accent) !important;
	color: var(--tr-on-accent) !important;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	line-height: 1;
	box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
}
#sidemenu_area.menu-open #sidemenu_link { left: calc(100% + 12px); }
#sidemenu_scroller_wrapper { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#sidemenu_scroller { position: relative; padding: 16px 0 96px; }
#sidemenu, #sidemenu_scroller ul { list-style: none; margin: 0; padding: 0; }
#sidemenu_scroller > ul[class*="submenu_item_"] { background: var(--tr-surface) !important; }
#sidemenu li { position: relative; }
#sidemenu_scroller li a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 10px 24px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--tr-text);
	border-bottom: 1px solid var(--tr-line);
}
#sidemenu_scroller li a:hover, #sidemenu li.current-menu-item > a { color: var(--tr-accent); }
#sidemenu .submenu_opener { position: absolute; right: 0; top: 0; width: 48px; justify-content: center; padding: 0; border: 0; }

/* =====================================================================
   5. Page layout
   ===================================================================== */
#main { max-width: var(--tr-wrap); margin: 0 auto; padding: 24px var(--tr-pad) 0; }
#main_inner, #content { width: auto; float: none; margin: 0; padding: 0; }
.clearboth::after { content: ''; display: table; clear: both; }

/* =====================================================================
   6. Tiles: home ([blogger] shortcode), categories / archives / search, related posts.
      Puzzles markup: .post_thumb > (a>img, hidden) .post_category .post_content_wrapper[style=bg] > h2 + .post_descr
   ===================================================================== */
.sc_puzzles,
.blog_style_puzzles #content.content_blog,
#related_posts {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin: 0 !important;
	overflow: visible !important;
}
.sc_puzzles > p, .post_text_area > p:empty { display: none; }
.sc_blogger_item_puzzles, .blog_style_puzzles #content > article { margin: 0; min-width: 0; display: flex; }

.sc_blogger_item_puzzles .post_thumb,
.blog_style_puzzles #content > article .post_thumb,
.related_posts_item.post_thumb {
	position: relative;
	width: 100% !important;
	height: auto !important;
	flex: 1 1 auto;
	min-height: 260px;
	margin: 0;
	border-radius: var(--tr-radius);
	overflow: hidden;
	background: var(--tr-surface);
	display: flex;
	flex-direction: column;
}
.post_thumb .post_content_wrapper {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 64px 22px 24px;
	color: #FFFFFF;
	background-color: var(--tr-surface-2);
}
.post_thumb .post_content_wrapper:not(.tr-on-light) { background-image: linear-gradient(rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.16)); }
.post_thumb .post_content_wrapper.tr-on-light { background-image: linear-gradient(rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.14)); }
.post_thumb .post_content_wrapper.tr-on-light,
.post_thumb .post_content_wrapper.tr-on-light a { color: var(--tr-on-accent); }
.post_thumb .post_category {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 2;
	max-width: calc(100% - 36px);
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.94) !important;
	color: var(--tr-on-accent);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .3px;
	line-height: 1.25;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.post_thumb .post_subtitle {
	margin: 0;
	font-size: 24px;
	font-weight: 900;
	line-height: 1.12;
	letter-spacing: -0.4px;
	color: inherit;
	overflow-wrap: anywhere;
}
.post_thumb .post_subtitle a { color: inherit; }
.post_thumb .post_subtitle a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.sc_blogger_item_puzzles .post_thumb, .blog_style_puzzles #content > article .post_thumb, .related_posts_item.post_thumb { transition: transform .25s ease, box-shadow .25s ease; }
.sc_blogger_item_puzzles .post_thumb:hover, .blog_style_puzzles #content > article .post_thumb:hover, .related_posts_item.post_thumb:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38); }
@media (prefers-reduced-motion: reduce) { .post_thumb { transition: none !important; transform: none !important; } }
.post_thumb .post_descr { font-size: 15px; line-height: 1.55; font-weight: 500; overflow-wrap: anywhere; }
.post_thumb .post_descr p { margin: 0; }
.post_thumb .post_descr a { position: relative; z-index: 2; color: inherit; text-decoration: underline; }
.post_thumb .post_descr img { max-height: 1.2em; width: auto; vertical-align: -0.15em; }

/* Picture tiles (class tr-bg tr-bg-NN from functions.php): the Phuket scene fills the card, the text sits in an indigo block.
   The Puzzles colour stays underneath until the picture loads. */
.tr-bg-01 { --tr-pic: url(/wp-content/themes/trueresort/assets/bg/01.webp); }
.tr-bg-02 { --tr-pic: url(/wp-content/themes/trueresort/assets/bg/02.webp); }
.tr-bg-03 { --tr-pic: url(/wp-content/themes/trueresort/assets/bg/03.webp); }
.tr-bg-04 { --tr-pic: url(/wp-content/themes/trueresort/assets/bg/04.webp); }
.tr-bg-05 { --tr-pic: url(/wp-content/themes/trueresort/assets/bg/05.webp); }
.tr-bg-06 { --tr-pic: url(/wp-content/themes/trueresort/assets/bg/06.webp); }
.tr-bg-07 { --tr-pic: url(/wp-content/themes/trueresort/assets/bg/07.webp); }
.tr-bg-08 { --tr-pic: url(/wp-content/themes/trueresort/assets/bg/08.webp); }
.tr-bg-09 { --tr-pic: url(/wp-content/themes/trueresort/assets/bg/09.webp); }
.tr-bg-10 { --tr-pic: url(/wp-content/themes/trueresort/assets/bg/10.webp); }
.tr-bg-11 { --tr-pic: url(/wp-content/themes/trueresort/assets/bg/11.webp); }
.tr-bg-12 { --tr-pic: url(/wp-content/themes/trueresort/assets/bg/12.webp); }
.post_thumb .post_content_wrapper.tr-bg {
	justify-content: flex-end;
	gap: 0;
	min-height: 440px;
	padding: 64px 12px 12px;
	background: var(--tr-pic) center / cover no-repeat !important;
}
/* Title and description together in one rounded indigo block at the bottom of the picture */
.post_thumb .post_content_wrapper.tr-bg .post_subtitle {
	margin: 0;
	padding: 18px 20px 8px;
	border-radius: 18px 18px 0 0;
	background: rgba(22, 26, 43, 0.8);
	font-size: 22px;
	line-height: 1.18;
	letter-spacing: -0.3px;
}
.post_thumb .post_content_wrapper.tr-bg .post_subtitle a { color: #FFFFFF !important; }
.post_thumb .post_content_wrapper.tr-bg .post_descr {
	padding: 0 20px 18px;
	border-radius: 0 0 18px 18px;
	background: rgba(22, 26, 43, 0.8);
	color: #D6DAEA;
	font-size: 15px;
	line-height: 1.55;
	font-weight: 500;
	opacity: 1;
}
.post_thumb .post_content_wrapper.tr-bg .post_descr p {
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.post_thumb .post_content_wrapper.tr-bg .post_descr a { color: #D6DAEA; }

/* Home: pages 1 2 3 (the page is split with "nextpage") */
body.home .post_text_area > hr.wp-block-separator { display: none; }
.nav_pages_parts {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	width: max-content;
	max-width: 100%;
	margin: 32px auto 8px;
	padding: 4px;
	border-radius: 999px;
	background: var(--tr-surface);
}
.nav_pages_parts .pages { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nav_pages_parts .post-page-numbers {
	width: var(--tr-tap);
	height: var(--tr-tap);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: var(--tr-text);
}
.nav_pages_parts .post-page-numbers.current { background: var(--tr-accent); color: var(--tr-on-accent); font-weight: 800; }

/* Category / archive / search pagination (Puzzles: #nav_pages.theme_paginaton > ul > li) */
.theme_paginaton { grid-column: 1 / -1; margin: 32px 0 8px; }
.theme_paginaton ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; }
.theme_paginaton li a, .theme_paginaton li span {
	min-width: var(--tr-tap);
	height: var(--tr-tap);
	padding: 0 14px;
	border-radius: 999px;
	background: var(--tr-surface);
	color: var(--tr-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
}
.theme_paginaton li a:hover { background: var(--tr-surface-2); color: var(--tr-accent); }
.theme_paginaton .pager_current span { background: var(--tr-accent); color: var(--tr-on-accent); }
.theme_paginaton .pager_pages span { background: transparent; color: var(--tr-muted); font-weight: 600; padding: 0 6px; }

/* =====================================================================
   7. Posts and pages
   ===================================================================== */
/* Title block: a bright band (the place for a background picture later) */
.post_single .title_area {
	margin: 0;
	padding: 48px 48px 44px;
	border-radius: 28px;
	background: var(--tr-accent);
	color: var(--tr-on-accent);
}
/* Posts and pages: the picture as a rounded band, the big white title under it on the page background */
body.single .post_single .title_area,
body.page:not(.home) .post_single .title_area {
	padding: 0;
	border-radius: 0;
	background: none;
}
body.single .post_single .title_area::before,
body.page:not(.home) .post_single .title_area::before {
	content: '';
	display: block;
	aspect-ratio: 16 / 5;
	margin-bottom: 28px;
	border-radius: 28px;
	background: var(--tr-hero, none) center / cover no-repeat, var(--tr-surface);
}
body.single .post_single .post_title.entry-title,
body.page:not(.home) .post_single .post_title.entry-title { color: var(--tr-text); }
.post_single .post_title.entry-title {
	margin: 0;
	max-width: 1080px;
	font-size: clamp(38px, 5.2vw, 68px);
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: -1.6px;
	color: var(--tr-on-accent);
}
body.tr-title-l .post_single .post_title.entry-title { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.8px; line-height: 1.1; }
body.tr-title-xl .post_single .post_title.entry-title { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.3px; line-height: 1.25; }
body.tr-title-xxl .post_single .post_title.entry-title { font-size: 18px; letter-spacing: 0; line-height: 1.45; font-weight: 700; }
body.home .post_single .title_area { display: none; } /* Puzzles prints no title area on the home page either */

.post_single .post_info { font-size: 15px; color: var(--tr-muted); margin: 16px 0 0; }
.post_single .post_info a { color: var(--tr-text); }

.post_text_area { margin-top: 32px; }
body.home .post_text_area { margin-top: 8px; }

/* Reading column for post and page text (not the home page tiles) */
body:not(.home) .post_single .post_text_area {
	max-width: var(--tr-read);
	margin-left: auto;
	margin-right: auto;
	counter-reset: tr-section;
	font-size: 18px;
	line-height: 1.7;
	color: var(--tr-text-2);
}
body:not(.home) .post_single .entry-content { display: block; }
body:not(.home) .post_single .entry-content strong:not(:where(#flight-schedule, .saboxplugin-wrap) *), body:not(.home) .post_single .entry-content b:not(:where(#flight-schedule, .saboxplugin-wrap) *) { color: #FFFFFF; }

/* Headings: the top level used in a post is numbered (class tr-section,
set in functions.php) */
.post_single .entry-content .tr-section {
	counter-increment: tr-section;
	margin: 56px 0 16px;
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 900;
	line-height: 1.12;
	letter-spacing: -0.8px;
}
.post_single .entry-content .tr-section::before {
	content: counter(tr-section, decimal-leading-zero);
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: 1px;
	color: var(--tr-accent);
}
.post_single .entry-content h2:not(.tr-section):not(:where(#flight-schedule, .saboxplugin-wrap) *),
.post_single .entry-content h3:not(.tr-section):not(:where(#flight-schedule, .saboxplugin-wrap) *) { margin: 36px 0 12px; font-size: 22px; font-weight: 800; line-height: 1.3; }
.post_single .entry-content h4:not(:where(#flight-schedule, .saboxplugin-wrap) *),
.post_single .entry-content h5:not(:where(#flight-schedule, .saboxplugin-wrap) *),
.post_single .entry-content h6:not(:where(#flight-schedule, .saboxplugin-wrap) *) { margin: 28px 0 10px; font-size: 19px; font-weight: 800; line-height: 1.35; }
.post_single .entry-content p:not(:where(#flight-schedule, .saboxplugin-wrap) *) { margin: 0 0 1.1em; }
.post_single .entry-content a:not(:where(#flight-schedule, .saboxplugin-wrap) *) { color: var(--tr-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.post_single .entry-content a:hover:not(:where(#flight-schedule, .saboxplugin-wrap) *) { color: #FFE27A; }
.post_single .entry-content hr:not(:where(#flight-schedule, .saboxplugin-wrap) *) { border: 0; height: 1px; background: var(--tr-line); margin: 36px 0; }
/* Media */
.post_single .entry-content img:not(:where(#flight-schedule, .saboxplugin-wrap) *) { border-radius: var(--tr-radius-sm); }
.post_single .entry-content figure:not(:where(#flight-schedule, .saboxplugin-wrap) *) { margin: 24px 0; max-width: 100%; }
.post_single .entry-content figure img:not(:where(#flight-schedule, .saboxplugin-wrap) *) { display: block; }
.post_single .entry-content figcaption:not(:where(#flight-schedule, .saboxplugin-wrap) *),
.post_single .entry-content .wp-caption-text:not(:where(#flight-schedule, .saboxplugin-wrap) *) { font-size: 15px; color: var(--tr-muted); margin-top: 8px; }
.post_single .entry-content .wp-caption:not(:where(#flight-schedule, .saboxplugin-wrap) *) { max-width: 100% !important; }
.post_single .entry-content .alignleft:not(:where(#flight-schedule, .saboxplugin-wrap) *) { float: left; margin: 6px 20px 12px 0; max-width: 50%; }
.post_single .entry-content .alignright:not(:where(#flight-schedule, .saboxplugin-wrap) *) { float: right; margin: 6px 0 12px 20px; max-width: 50%; }
.post_single .entry-content .aligncenter:not(:where(#flight-schedule, .saboxplugin-wrap) *) { margin-left: auto; margin-right: auto; display: block; }
.post_single .entry-content iframe:not(:where(#flight-schedule, .saboxplugin-wrap) *) { display: block; border: 0; border-radius: var(--tr-radius-sm); }
.post_single .entry-content .wp-block-embed.is-type-video iframe:not(:where(#flight-schedule, .saboxplugin-wrap) *),
.post_single .entry-content iframe[src*="youtube"]:not(:where(#flight-schedule, .saboxplugin-wrap) *),
.post_single .entry-content iframe[src*="youtu.be"]:not(:where(#flight-schedule, .saboxplugin-wrap) *) { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.post_single .entry-content .wp-block-gallery:not(:where(#flight-schedule, .saboxplugin-wrap) *) { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; padding: 0; }
.post_single .entry-content .wp-block-gallery figure:not(:where(#flight-schedule, .saboxplugin-wrap) *) { margin: 0; }
.post_single .entry-content .wp-block-columns:not(:where(#flight-schedule, .saboxplugin-wrap) *) { display: flex; flex-wrap: wrap; gap: 20px; }
.post_single .entry-content .wp-block-column:not(:where(#flight-schedule, .saboxplugin-wrap) *) { flex: 1 1 260px; min-width: 0; }
.post_single .entry-content table:not(:where(#flight-schedule, .saboxplugin-wrap) *) { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.post_single .entry-content th:not(:where(#flight-schedule, .saboxplugin-wrap) *),
.post_single .entry-content td:not(:where(#flight-schedule, .saboxplugin-wrap) *) { padding: 12px 14px; border-bottom: 1px solid var(--tr-line); text-align: left; }
.post_single .entry-content pre:not(:where(#flight-schedule, .saboxplugin-wrap) *),
.post_single .entry-content code:not(:where(#flight-schedule, .saboxplugin-wrap) *) { font-size: 15px; background: var(--tr-surface); border-radius: 8px; }
.post_single .entry-content pre:not(:where(#flight-schedule, .saboxplugin-wrap) *) { padding: 14px 16px; overflow-x: auto; }
.post_single .entry-content blockquote:not(:where(#flight-schedule, .saboxplugin-wrap) *) {
	margin: 24px 0;
	padding: 20px 24px;
	border-radius: var(--tr-radius-sm);
	background: var(--tr-surface);
	color: var(--tr-text);
	font-size: 19px;
}
.post_single .entry-content blockquote p:last-child:not(:where(#flight-schedule, .saboxplugin-wrap) *) { margin-bottom: 0; }
.post_single .entry-content .wp-block-button__link:not(:where(#flight-schedule, .saboxplugin-wrap) *) {
	display: inline-flex;
	align-items: center;
	min-height: var(--tr-tap);
	padding: 0 22px;
	border-radius: 999px;
	background: var(--tr-accent);
	color: var(--tr-on-accent);
	text-decoration: none;
	font-weight: 800;
}
/* WordPress editor colours,
made readable on the dark background */
.post_single .entry-content .has-vivid-red-color:not(:where(#flight-schedule, .saboxplugin-wrap) *) { color: #FF6B6B !important; }
.post_single .entry-content .has-luminous-vivid-orange-color:not(:where(#flight-schedule, .saboxplugin-wrap) *) { color: #FFA552 !important; }
.post_single .entry-content .has-vivid-cyan-blue-color:not(:where(#flight-schedule, .saboxplugin-wrap) *) { color: #5CB8FF !important; }
.post_single .entry-content .has-vivid-purple-color:not(:where(#flight-schedule, .saboxplugin-wrap) *) { color: #C08BFF !important; }
.post_single .entry-content .has-vivid-green-cyan-color:not(:where(#flight-schedule, .saboxplugin-wrap) *) { color: #3FE0A1 !important; }
.post_single .entry-content .has-black-color:not(.wp-block-button__link):not(:where(#flight-schedule, .saboxplugin-wrap) *),
.post_single .entry-content .has-cyan-bluish-gray-color:not(:where(#flight-schedule, .saboxplugin-wrap) *) { color: var(--tr-text) !important; }
.post_single .entry-content [style*="color:#000"]:not(:where(#flight-schedule, .saboxplugin-wrap) *),
.post_single .entry-content [style*="color: #000"]:not(:where(#flight-schedule, .saboxplugin-wrap) *),
.post_single .entry-content [style*="color:rgb(0, 0, 0)"]:not(:where(#flight-schedule, .saboxplugin-wrap) *),
.post_single .entry-content [style*="color: rgb(0, 0, 0)"]:not(:where(#flight-schedule, .saboxplugin-wrap) *) { color: var(--tr-text) !important; }
.post_single .entry-content .has-background:not(:where(#flight-schedule, .saboxplugin-wrap) *) { padding: 16px 20px; border-radius: var(--tr-radius-sm); color: var(--tr-on-accent); }
.post_single .entry-content .has-background a:not(:where(#flight-schedule, .saboxplugin-wrap) *) { color: inherit; }
/* Lists: bullets = compact check list,
numbers = step cards */
.post_single .entry-content ul:not(.hammer-cpt-boost ul):not(:where(#flight-schedule, .saboxplugin-wrap) *) { list-style: none; margin: 16px 0 22px; padding: 0; }
.post_single .entry-content ul:not(.hammer-cpt-boost ul) > li:not(:where(#flight-schedule, .saboxplugin-wrap) *) { position: relative; padding: 0 0 0 34px; margin: 0 0 10px; }
.post_single .entry-content ul:not(.hammer-cpt-boost ul) > li:not(:where(#flight-schedule, .saboxplugin-wrap) *)::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--tr-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0A0B' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.post_single .entry-content ol:not(:where(#flight-schedule, .saboxplugin-wrap) *) { list-style: none; counter-reset: tr-step; margin: 18px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.post_single .entry-content ol > li:not(:where(#flight-schedule, .saboxplugin-wrap) *) {
	counter-increment: tr-step;
	padding: 20px 22px;
	border-radius: var(--tr-radius);
	background: var(--tr-surface);
	font-size: 17px;
	line-height: 1.6;
}
.post_single .entry-content ol > li:not(:where(#flight-schedule, .saboxplugin-wrap) *)::before { content: counter(tr-step); display: block; margin-bottom: 8px; font-size: 36px; font-weight: 900; line-height: 1; color: var(--tr-accent); }
.post_single .entry-content li ul:not(:where(#flight-schedule, .saboxplugin-wrap) *),
.post_single .entry-content li ol:not(:where(#flight-schedule, .saboxplugin-wrap) *) { display: block; margin: 8px 0 0; }
.post_single .entry-content li ol > li:not(:where(#flight-schedule, .saboxplugin-wrap) *) { padding: 0; background: none; }

/* Hammer link blocks inside posts: "горячее", "свежее", "популярное" */
.post_single .entry-content .hammer-cpt-boost { margin: 0 0 40px; }
.post_single .entry-content > .hammer-cpt-boost:first-child { margin-bottom: 48px; }
.post_single .entry-content .hammer-cpt-boost h2 {
	margin: 0 0 12px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--tr-accent);
}
.post_single .entry-content .hammer-cpt-boost ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 10px;
}
.post_single .entry-content .hammer-cpt-boost li {
	position: relative;
	margin: 0;
	padding: 18px 20px;
	border-radius: 18px;
	background: var(--tr-surface);
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 17px;
	line-height: 1.3;
}
.post_single .entry-content .hammer-cpt-boost li > a { color: var(--tr-text); font-weight: 800; text-decoration: none; font-size: inherit !important; }
.post_single .entry-content .hammer-cpt-boost li > a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.post_single .entry-content .hammer-cpt-boost li p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--tr-muted); }
.post_single .entry-content .hammer-cpt-boost li p a { color: var(--tr-muted); font-weight: 400; text-decoration: none; font-size: inherit !important; }
.post_single .entry-content .hammer-cpt-boost li:hover { background: var(--tr-surface-2); }
.post_single .entry-content .hammer-cpt-boost li:hover > a { color: var(--tr-accent); }
@media (min-width: 1100px) {
	body:not(.home) .post_single .entry-content > .hammer-cpt-boost {
		width: calc(min(100vw, var(--tr-wrap)) - 2 * var(--tr-pad));
		position: relative;
		left: 50%;
		transform: translateX(-50%);
	}
}

/* Related posts */
#related_posts { margin: 56px 0 0 !important; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#related_posts .subtitle_area { grid-column: 1 / -1; }
#related_posts .post_related_title { margin: 0 0 4px; font-size: 28px; font-weight: 900; letter-spacing: -0.5px; }

/* Puzzles extras inside posts */
.post_author_details { margin: 48px auto 0; max-width: var(--tr-read); padding: 24px; border-radius: var(--tr-radius); background: var(--tr-surface); }
.post_info_bottom { max-width: var(--tr-read); margin: 32px auto 0; font-size: 15px; color: var(--tr-muted); }
.post_info_bottom a { display: inline-flex; align-items: center; min-height: 36px; margin: 0 6px 6px 0; padding: 0 14px; border-radius: 999px; background: var(--tr-surface); color: var(--tr-text); }

/* Pages: title on the reading column */
body.page:not(.home) .post_single .title_area { max-width: var(--tr-read); margin: 0 auto; }
body.page:not(.home) .post_single .post_title.entry-title { font-size: clamp(30px, 4vw, 48px); letter-spacing: -1px; }

/* 404 and "nothing found" */
body.error404 #content, body.search-no-results #content { max-width: var(--tr-read); margin: 0 auto; }
body.error404 #content h1, body.error404 #content h2, body.error404 #content h3 { margin: 0 0 12px; line-height: 1.2; }


/* Plugin and editor elements inside posts */
.post_single .entry-content .wp-block-button__link:not(.has-background) { background: var(--tr-accent) !important; color: var(--tr-on-accent) !important; }
.post_single .entry-content .wp-block-button__link * { color: inherit !important; }
.post_single .entry-content .has-small-font-size { font-size: 15px !important; }
.post_single .entry-content a.wp-otfd-unique-link {
	display: inline-flex;
	align-items: center;
	min-height: var(--tr-tap);
	padding: 0 22px;
	border-radius: 999px;
	background: var(--tr-accent);
	color: var(--tr-on-accent);
	font-weight: 800;
	text-decoration: none;
}
/* Simple Author Box */
.saboxplugin-wrap { border-radius: var(--tr-radius) !important; overflow: hidden; }
html body .saboxplugin-wrap .saboxplugin-desc, html body .saboxplugin-wrap .saboxplugin-desc p { font-size: 16px !important; line-height: 1.55 !important; }
html body .saboxplugin-wrap .saboxplugin-desc p * { font-size: inherit !important; }
/* Flight board (freepass-tablo): readable colours everywhere, readable sizes and touch-friendly controls up to tablets */
#flight-schedule .positive-change { color: #157A35 !important; }
#flight-schedule .negative-change { color: #B42318 !important; }
#flight-schedule .yandex-copyright a { font-size: 14px !important; }
@media (max-width: 1023px) {
	#flight-schedule, #flight-schedule td, #flight-schedule th, #flight-schedule .toggle-trigger, #flight-schedule button,
	#flight-schedule #local-time, #flight-schedule #local-date, #flight-schedule .yandex-copyright a { font-size: 15px !important; }
	#flight-schedule button, #flight-schedule .tabs .tab { min-height: var(--tr-tap) !important; }
	#flight-schedule .tab-content, #flight-schedule .statistics-table { overflow-x: auto; }
}

/* =====================================================================
   8. Footer widgets: свежее / горячее / популярное / случайное (Recent Posts Widget Extended)
   ===================================================================== */
#footer { margin-top: 64px; border-top: 1px solid var(--tr-line); }
#footer_sidebar_inner {
	max-width: var(--tr-wrap);
	margin: 0 auto;
	padding: 48px var(--tr-pad) 64px;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 32px;
	align-items: start;
}
#footer_sidebar .widget { margin: 0; min-width: 0; }
#footer_sidebar .widget_title {
	margin: 0 0 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 22px;
	font-weight: 900;
	letter-spacing: -0.3px;
	text-transform: capitalize;
}
#footer_sidebar .widget_title::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--tr-accent); flex: 0 0 auto; }
.rpwe-block ul.rpwe-ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.rpwe-block li.rpwe-li { position: relative; margin: 0 !important; padding: 0 !important; border: 0 !important; display: flex; flex-direction: column; gap: 10px; }
.rpwe-block li.rpwe-li::before, .rpwe-block li.rpwe-li::after { display: none !important; }
.rpwe-block .rpwe-img { display: block; margin: 0 !important; }
.rpwe-block .rpwe-thumb {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 16px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
	background: var(--tr-surface);
	float: none !important;
}
#footer_sidebar .rpwe-block h3.rpwe-title { margin: 0 !important; font-size: 17px !important; font-weight: 800 !important; line-height: 1.3 !important; }
.rpwe-block h3.rpwe-title a { color: var(--tr-text); font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; }
.rpwe-block h3.rpwe-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.rpwe-block li.rpwe-li:hover h3.rpwe-title a { color: var(--tr-accent); }
.rpwe-block .rpwe-summary { margin: 0; font-size: 15px; line-height: 1.55; color: var(--tr-muted); }
.rpwe-block .rpwe-summary .more-link { position: relative; z-index: 2; display: inline-flex; align-items: center; min-height: 32px; margin-left: 4px; font-size: 15px; font-weight: 800; color: var(--tr-accent); }
#footer_sidebar .widget-number-1 .rpwe-ul { counter-reset: tr-fresh; gap: 0; }
#footer_sidebar .widget-number-1 li.rpwe-li { counter-increment: tr-fresh; padding: 12px 0 12px 40px !important; border-top: 1px solid var(--tr-line) !important; gap: 2px; min-height: var(--tr-tap); }
#footer_sidebar .widget-number-1 li.rpwe-li h3.rpwe-title::before {
	content: counter(tr-fresh, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 14px;
	font-size: 14px;
	font-weight: 800;
	color: var(--tr-accent);
}
#footer_sidebar .widget-number-1 .rpwe-block h3.rpwe-title { font-size: 16px !important; font-weight: 600 !important; line-height: 1.4 !important; }

#footer_copyright { border-top: 1px solid var(--tr-line); }
#footer_copyright_inner { max-width: var(--tr-wrap); margin: 0 auto; padding: 24px var(--tr-pad) 40px; font-size: 15px; line-height: 1.8; color: var(--tr-muted); }
#footer_copyright_inner strong a { display: inline-flex; align-items: center; min-height: var(--tr-tap); color: var(--tr-accent); font-weight: 700; }

/* Back to top (Puzzles shows/hides it with jQuery) */
#toTop {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 40;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--tr-surface-2);
	border: 1px solid var(--tr-line-strong);
	color: var(--tr-text);
	display: none;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	line-height: 48px;
	text-align: center;
}

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], textarea, select {
	font: inherit;
	font-size: 16px; /* 16px stops iOS from zooming into fields */
	color: var(--tr-text);
	background: var(--tr-surface);
	border: 1px solid var(--tr-line-strong);
	border-radius: 14px;
	padding: 12px 16px;
	max-width: 100%;
}

/* =====================================================================
   9. Breakpoints
   ===================================================================== */
@media (max-width: 1279px) {
	.sc_puzzles, .blog_style_puzzles #content.content_blog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	#footer_sidebar_inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1099px) {
	:root { --tr-pad: 20px; }
	#ads_block_top a.shapka { padding: 0 12px; font-size: 14px; }
	#header .logo_slogan { display: none; }
}
@media (max-width: 899px) {
	.sc_puzzles, .blog_style_puzzles #content.content_blog, #related_posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#ads_block_top { flex: 0 0 100%; order: 3; margin: 0; }
	#ads_block_top > div { overflow-x: auto; scrollbar-width: none; }
	#ads_block_top > div::-webkit-scrollbar { display: none; }
	#breadcrumbs_area { order: 4; }
	.breadcrumbs li a { min-height: var(--tr-tap); }
}

/* ---------- Phone ---------- */
@media (max-width: 599px) {
	:root { --tr-pad: 12px; --tr-header-h: 60px; --tr-radius: 20px; }

	/* Header scrolls away; the burger becomes a floating button at the bottom left */
	#header { position: relative; }
	#header_top_inner { padding: 0; gap: 0; min-height: 0; }
	#header .logo { order: 1; flex: 1 1 100%; min-height: var(--tr-header-h); padding: 6px 64px 6px 68px; display: flex; align-items: center; }
	#header .logo a { flex-direction: column; align-items: flex-start; gap: 4px; min-height: 0; }
	#header .logo_title { font-size: 26px; }
	#header .logo_slogan { display: block; font-size: 10px; letter-spacing: 1.2px; }
	#ads_block_top { order: 2; flex: 0 0 100%; margin: 0; padding: 0 0 8px; }
	#ads_block_top > div { padding: 0 16px; scroll-padding: 0 16px; }
	#ads_block_top a.shapka { border: 0; background: var(--tr-surface); font-size: 15px; padding: 0 16px; }
	#breadcrumbs_area { order: 3; padding: 0 16px 4px; }
	.breadcrumbs { font-size: 15px; flex-wrap: nowrap; }
	.breadcrumbs li a { min-height: var(--tr-tap); }
	.breadcrumbs li:not(.current) { flex: 0 0 auto; }
	.breadcrumbs li.current { display: block; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: var(--tr-tap); }
	#mainmenu_area { top: 8px; right: 8px; }
	.search_link { border: 0; }
	.search_form_area { padding: 8px; }

	/* The menu panel and its button scroll with the page: nothing floats over the text */
	#sidemenu_area { position: absolute; bottom: auto; height: 100vh; height: 100dvh; }
	#sidemenu_link { top: 8px; left: calc(100% + 12px); width: var(--tr-tap); height: var(--tr-tap); font-size: 20px; box-shadow: none; }
	#sidemenu_area.menu-open #sidemenu_link { left: calc(100% + 10px); }
	#toTop { display: none !important; }

	#main { padding: 12px 0 0; }

	/* Tiles: one per row, nearly edge to edge, everything readable */
	.sc_puzzles, .blog_style_puzzles #content.content_blog, #related_posts { grid-template-columns: 1fr; gap: 8px; padding: 0 8px; }
	.sc_blogger_item_puzzles .post_thumb,
	.blog_style_puzzles #content > article .post_thumb,
	.related_posts_item.post_thumb { min-height: 0; }
	.post_thumb .post_category { top: 16px; left: 16px; }
	.post_thumb .post_content_wrapper { padding: 60px 18px 22px; gap: 8px; }
	.post_thumb .post_content_wrapper.tr-bg { min-height: 420px; padding: 64px 10px 10px; gap: 0; }
	.post_thumb .post_subtitle { font-size: 24px; line-height: 1.15; }
	.post_thumb .post_descr { font-size: 16px; }
	#related_posts .post_related_title { padding: 0 8px; font-size: 24px; }
	.nav_pages_parts { margin: 20px auto 0; }
	.theme_paginaton { margin: 24px 0 0; }
	.theme_paginaton .pager_pages { flex: 0 0 100%; text-align: center; }

	/* Posts */
	.post_single .title_area { margin: 0 8px; padding: 28px 18px 26px; border-radius: 24px; }
	body.single .post_single .title_area,
	body.page:not(.home) .post_single .title_area { margin: 0; padding: 0 16px; }
	body.single .post_single .title_area::before,
	body.page:not(.home) .post_single .title_area::before { aspect-ratio: 16 / 9; margin: 0 -8px 20px; border-radius: 20px; }
	.post_single .post_title.entry-title { font-size: 34px; letter-spacing: -0.8px; line-height: 1.08; }
	body.tr-title-l .post_single .post_title.entry-title { font-size: 26px; letter-spacing: -0.4px; line-height: 1.15; }
	body.tr-title-xl .post_single .post_title.entry-title { font-size: 20px; letter-spacing: 0; line-height: 1.3; }
	body.tr-title-xxl .post_single .post_title.entry-title { font-size: 16px; line-height: 1.5; }
	body.page:not(.home) .post_single .post_title.entry-title { font-size: 28px; }
	body:not(.home) .post_single .post_text_area { padding: 0 16px; font-size: 17px; line-height: 1.68; margin-top: 24px; }
	.post_single .entry-content .tr-section { margin: 44px 0 14px; font-size: 26px; letter-spacing: -0.5px; }
	.post_single .entry-content .tr-section::before { font-size: 13px; }
	.post_single .entry-content h2:not(.tr-section), .post_single .entry-content h3:not(.tr-section) { font-size: 20px; }
	.post_single .entry-content h4, .post_single .entry-content h5, .post_single .entry-content h6 { font-size: 18px; }
	.post_single .entry-content .alignleft, .post_single .entry-content .alignright { float: none; margin: 16px auto; max-width: 100%; }
	.post_single .entry-content figure { margin: 20px -16px; max-width: none; }
	.post_single .entry-content figure img { border-radius: 0; width: 100%; }
	.post_single .entry-content figure figcaption { padding: 0 16px; }
	.post_single .entry-content ol { grid-template-columns: 1fr; margin-left: -8px; margin-right: -8px; gap: 8px; }
	.post_single .entry-content ol > li { padding: 16px; border-radius: 18px; }
	.post_single .entry-content ol > li::before { font-size: 30px; }
	.post_single .entry-content blockquote { margin-left: -8px; margin-right: -8px; padding: 16px 18px; font-size: 17px; }

	/* Hammer link blocks: swipe sideways */
	.post_single .entry-content .hammer-cpt-boost { margin-left: -16px; margin-right: -16px; }
	.post_single .entry-content .hammer-cpt-boost h2 { padding: 0 16px; font-size: 14px; }
	.post_single .entry-content .hammer-cpt-boost ul {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 16px;
		padding: 0 16px 4px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	.post_single .entry-content .hammer-cpt-boost ul::-webkit-scrollbar { display: none; }
	.post_single .entry-content .hammer-cpt-boost li { flex: 0 0 78%; scroll-snap-align: start; padding: 16px; }

	/* Footer: the list stays a list, photo columns swipe sideways */
	#footer { margin-top: 40px; }
	#footer_sidebar_inner { grid-template-columns: 1fr; gap: 32px; padding: 32px 0 40px; }
	#footer_sidebar .widget_title { margin: 0 16px 12px; }
	#footer_sidebar .widget-number-1 .rpwe-block { padding: 0 16px; }
	#footer_sidebar .widget:not(.widget-number-1) .rpwe-ul {
		flex-direction: row;
		gap: 10px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding: 0 16px;
		padding: 0 16px 4px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}
	#footer_sidebar .widget:not(.widget-number-1) .rpwe-ul::-webkit-scrollbar { display: none; }
	#footer_sidebar .widget:not(.widget-number-1) li.rpwe-li {
		flex: 0 0 82%;
		scroll-snap-align: start;
		background: var(--tr-surface);
		border-radius: 18px !important;
		overflow: hidden;
		gap: 10px;
		padding: 0 0 16px !important;
	}
	#footer_sidebar .widget:not(.widget-number-1) .rpwe-thumb { border-radius: 0; aspect-ratio: 16 / 9; }
	#footer_sidebar .widget:not(.widget-number-1) h3.rpwe-title,
	#footer_sidebar .widget:not(.widget-number-1) .rpwe-summary { padding: 0 16px; }
	#footer_copyright_inner { padding: 20px 16px 32px; }
}
