/* ==========================================================================
   8XBET — main stylesheet
   1.  Fonts
   2.  Tokens & reset
   3.  Layout helpers
   4.  Typography
   5.  Buttons & forms
   6.  Header
   7.  Mobile off-canvas menu
   8.  Content / article
   9.  Table of contents
   10. Blog grid & post cards
   11. Sidebar widgets
   12. Footer
   13. Back to top
   14. Responsive
   15. Landing-page content blocks
   16. Trust & legal pages
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
@font-face {
	font-family: 'Roboto Serif';
	font-style: normal;
	font-weight: 400 700;
	font-stretch: 100%;
	font-display: swap;
	src: url(../fonts/roboto-serif-vietnamese.woff2) format('woff2');
	unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
	font-family: 'Roboto Serif';
	font-style: normal;
	font-weight: 400 700;
	font-stretch: 100%;
	font-display: swap;
	src: url(../fonts/roboto-serif-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Roboto Serif';
	font-style: normal;
	font-weight: 400 700;
	font-stretch: 100%;
	font-display: swap;
	src: url(../fonts/roboto-serif-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: 'Roboto Serif';
	font-style: normal;
	font-weight: 400 700;
	font-stretch: 100%;
	font-display: swap;
	src: url(../fonts/roboto-serif-cyrillic.woff2) format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
	font-family: 'Roboto Serif';
	font-style: normal;
	font-weight: 400 700;
	font-stretch: 100%;
	font-display: swap;
	src: url(../fonts/roboto-serif-cyrillic-ext.woff2) format('woff2');
	unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* 2. Tokens & reset ------------------------------------------------------- */
:root {
	--primary: #c62828;
	--secondary: #d26e4b;
	--heading: #0478d1;
	--link: #1565c0;
	--text: #140000;
	--muted: #444;
	--border: #ececec;
	--page-bg: #5b5b5b;
	--content-bg: #fff;
	--topbar-bg: #0a0a0a;
	--nav-bg: #0a0002;
	--nav-link: #e8e7e7;
	--footer-heading: #d70101;
	--btn-text: #ffff00;
	--btn-border: #ffec8b;
	--container: 1080px;
	--gutter: 15px;
	--font: 'Roboto Serif', Georgia, 'Times New Roman', serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--page-bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
}

img {
	max-width: 100%;
	height: auto;
	border: 0;
	vertical-align: middle;
}

figure { margin: 0; }

a {
	color: var(--link);
	text-decoration: none;
	transition: color .2s ease;
}

a:hover { color: var(--primary); }

button { font-family: inherit; }

/* 3. Layout helpers ------------------------------------------------------- */
#wrapper {
	position: relative;
	background-color: var(--content-bg);
}

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -15px;
}

.col { width: 100%; padding: 0 15px 30px; }

.section { padding: 30px 0; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
}

.skip-link { position: absolute; left: -9999px; }

.skip-link:focus {
	left: 15px;
	top: 10px;
	z-index: 999;
	background: #fff;
	padding: 10px;
}

.icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* 4. Typography ----------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	color: var(--heading);
	font-family: var(--font);
	font-weight: 700;
	line-height: 1.3;
}

h1 { font-size: 1.7rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: .875rem; }

p { margin: 0 0 1.3em; }

.is-divider {
	display: block;
	width: 30px;
	height: 2px;
	margin: 7px auto;
	background-color: rgba(0, 0, 0, .1);
}

.is-divider.small { width: 40px; }

.top-divider { border-top: 1px solid rgba(0, 0, 0, .1); }

/* Section heading flanked by two rules, as on the live site */
.section-title {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 1em;
	text-align: center;
}

.section-title::before,
.section-title::after {
	content: '';
	flex: 1 1 auto;
	height: 2px;
	background-color: var(--heading);
}

.section-title span {
	margin: 0 15px;
	color: var(--heading);
	font-size: 1.7rem;
	font-weight: 700;
}

/* 5. Buttons & forms ------------------------------------------------------ */
.button {
	display: inline-block;
	padding: 0 1.2em;
	background-color: var(--primary);
	border: 1px solid transparent;
	color: #fff;
	font-size: .95rem;
	font-weight: 700;
	line-height: 2.4em;
	letter-spacing: .03em;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity .2s, background-color .2s;
}

.button:hover { color: #fff; opacity: .9; }

/* Header CTA — pulsing yellow-on-red pill */
.header-button a {
	display: inline-block;
	margin: 10px 0;
	padding: 0 15px;
	background-color: var(--primary);
	border: 1px solid var(--btn-border);
	border-radius: 20px;
	color: var(--btn-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 38px;
	text-transform: uppercase;
	white-space: nowrap;
	animation: pulse-cta 2s infinite;
}

.header-button a:hover { color: #fff; }

@keyframes pulse-cta {
	0%   { transform: scale(.9); box-shadow: 0 0 0 0 rgba(255, 0, 0, .7); }
	40%  { transform: scale(1);  box-shadow: 0 0 0 10px rgba(228, 255, 0, .21); }
	80%  { transform: scale(1);  box-shadow: 0 0 0 10px rgba(255, 0, 0, 0), 0 0 0 20px rgba(255, 0, 0, 0); }
	100% { transform: scale(.9); box-shadow: 0 0 0 0 rgba(255, 0, 0, 0), 0 0 0 20px rgba(255, 0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.header-button a { animation: none; }
}

.searchform {
	position: relative;
	display: flex;
	width: 100%;
	margin: 0;
}

.search-field {
	flex: 1 1 auto;
	min-width: 0;
	height: 38px;
	margin: 0;
	padding: 0 12px;
	background-color: #f2f2f2;
	border: 1px solid transparent;
	border-radius: 99px 0 0 99px;
	color: var(--text);
	font-family: inherit;
	font-size: .875rem;
}

.search-field:focus {
	outline: none;
	background-color: #fff;
	border-color: var(--primary);
}

.search-submit {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 38px;
	background-color: var(--secondary);
	border: 0;
	border-radius: 0 99px 99px 0;
	color: #fff;
	cursor: pointer;
}

.search-submit:hover { background-color: var(--primary); }

/* 6. Header --------------------------------------------------------------- */
.site-header {
	position: relative;
	z-index: 30;
}

.header-top {
	display: none;
	background-color: var(--topbar-bg);
}

/* the sticky CTA bar needs to read as a layer above the content */
.header-top.is-pinned {
	box-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.header-top .container {
	display: flex;
	justify-content: center;
	gap: 10px;
}

.header-main { background-color: var(--content-bg); }

.header-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 84px;
}

.site-logo {
	flex: 0 0 auto;
	display: block;
	line-height: 0;
}

.site-logo img {
	max-height: 70px;
	width: auto;
}

.header-search {
	flex: 1 1 auto;
	max-width: 320px;
}

.header-buttons {
	flex: 0 0 auto;
	display: flex;
	gap: 10px;
	margin-left: auto;
}

.nav-toggle,
.nav-close {
	display: none;
	padding: 8px;
	background: none;
	border: 0;
	color: var(--text);
	line-height: 0;
	cursor: pointer;
}

.nav-toggle .icon { width: 24px; height: 24px; }

.header-bottom { background-color: var(--nav-bg); }

.header-bottom .container {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 95px;
}

.main-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-nav > li > a {
	position: relative;
	display: block;
	padding: 10px 0;
	color: var(--nav-link);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 20px;
}

.main-nav > li > a::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3px;
	background-color: var(--primary);
	transform: scaleX(0);
	transition: transform .25s ease;
}

.main-nav > li > a:hover::after,
.main-nav > li.active > a::after { transform: scaleX(1); }

/* Sticky bar — reappears fixed once the page is scrolled past the header */
.site-header.is-stuck .header-main {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 40;
	box-shadow: 0 1px 10px rgba(0, 0, 0, .15);
	animation: header-drop .3s ease;
}

@keyframes header-drop {
	from { transform: translateY(-100%); }
	to   { transform: translateY(0); }
}

/* 7. Mobile off-canvas menu ---------------------------------------------- */
.menu-overlay {
	position: fixed;
	inset: 0;
	z-index: 90;
	background-color: rgba(0, 0, 0, .6);
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s;
}

.mobile-sidebar {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 100;
	width: 260px;
	max-width: 85vw;
	padding: 20px 0;
	background-color: #fff;
	overflow-y: auto;
	transform: translateX(-100%);
	transition: transform .25s ease;
}

body.menu-open { overflow: hidden; }
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
body.menu-open .mobile-sidebar { transform: translateX(0); }

.mobile-sidebar .nav-close {
	display: block;
	margin-right: 10px;
	margin-left: auto;
}

.mobile-sidebar .nav-close .icon { width: 20px; height: 20px; }

.mobile-sidebar .searchform { padding: 0 20px 15px; }

.nav-sidebar {
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-sidebar a {
	display: block;
	padding: 12px 20px;
	border-bottom: 1px solid var(--border);
	color: var(--text);
	font-size: .95rem;
	font-weight: 700;
}

.nav-sidebar a:hover { color: var(--primary); }

/* 8. Content / article ---------------------------------------------------- */
.page-wrapper { padding: 30px 0; }

.entry-content a,
.page-content a { color: var(--link); }

.entry-content a:hover,
.page-content a:hover { text-decoration: underline; }

/* Bold stays bold — colouring every <strong> turns the copy into a wall of blue */
.entry-content strong,
.page-content strong { color: inherit; font-weight: 700; }

.entry-content h2,
.page-content h2 { font-size: 1.6rem; }

.entry-content h3,
.page-content h3 { font-size: 1.25rem; }

.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol { margin: 0 0 1.3em; padding: 0; }

.entry-content li,
.page-content li { margin: 0 0 .6em 1.3em; }

figure.wp-caption { max-width: 100%; margin: 0 0 2em; }
figure.wp-caption.aligncenter { margin-right: auto; margin-left: auto; }
figure.wp-caption img { width: 100%; }

.wp-caption-text {
	margin: 0;
	padding: .36em;
	background-color: rgba(0, 0, 0, .05);
	color: var(--text);
	font-size: .9rem;
	font-style: italic;
	text-align: center;
}

.entry-content table,
.page-content table {
	width: 100%;
	margin: 0 0 1.5em;
	border-collapse: collapse;
	font-size: .95rem;
}

.entry-content th,
.entry-content td,
.page-content th,
.page-content td {
	padding: .6em .8em;
	border: 1px solid var(--border);
	text-align: left;
}

.entry-content th,
.page-content th { background-color: #f7f7f7; }

blockquote {
	margin: 0 0 1.5em;
	padding: .5em 1em;
	border-left: 3px solid var(--primary);
	color: var(--muted);
	font-style: italic;
}

/* Single post header */
.entry-header { margin-bottom: 1.5em; }
.entry-header-text { text-align: center; }
.entry-title { margin: 0 0 .5em; font-size: 1.7rem; }

.entry-meta {
	color: var(--text);
	font-size: .7rem;
	letter-spacing: .05em;
	text-transform: uppercase;
	opacity: .8;
}

.entry-meta a { color: inherit; }
.entry-meta .updated { display: none; }

.entry-image {
	position: relative;
	margin-top: 1em;
}

.entry-image img { width: 100%; }

.archive-page-header { padding: 30px 0 10px; }

.page-title {
	font-size: 1.7rem;
}

.taxonomy-description {
	max-width: 900px;
	margin: 0 auto;
	text-align: left;
}

/* Date badge shown over featured images */
.post-date-badge {
	position: absolute;
	top: 10px;
	left: -6px;
	z-index: 20;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	background-color: #fff;
	border: 2px solid var(--primary);
	color: var(--primary);
	font-size: .95rem;
	font-weight: 700;
	line-height: 1.05;
	text-align: center;
}

.post-date-badge .post-date-month {
	font-size: .68rem;
	text-transform: uppercase;
}

/* Previous / next post */
.navigation-post { margin: 2em 0; }

.next-prev-nav {
	display: flex;
	flex-wrap: wrap;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.next-prev-nav > div { flex: 1 1 50%; padding: 15px 0; }
.next-prev-nav .nav-next { text-align: right; }
.next-prev-nav a { color: var(--text); font-size: .95rem; }
.next-prev-nav a:hover { color: var(--primary); }
.next-prev-nav .icon { width: .7em; height: .7em; }

/* 9. Table of contents ---------------------------------------------------- */
.toc {
	display: table;
	max-width: 100%;
	margin: 0 0 1.5em;
	padding: 10px 20px 10px 10px;
	background-color: #f9f9f9;
	border: 1px solid #aaa;
	border-radius: 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
	font-size: 1rem;
}

.toc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	cursor: pointer;
	user-select: none;
}

.toc-header:hover .toc-title { color: var(--primary); }

.toc-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--text);
	font-size: 1.2rem;
	font-weight: 500;
	transition: color .2s ease;
}

.toc-title .icon {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	color: #999;
}

.toc-toggle {
	padding: 2px 6px;
	background: none;
	border: 0;
	color: #999;
	line-height: 0;
	cursor: pointer;
}

.toc-toggle .icon { width: 22px; height: 22px; }

/* chevron points down when shut, up when open */
.toc-toggle .icon-chevron { transition: transform .25s ease; }
.toc.is-collapsed .toc-toggle .icon-chevron { transform: rotate(180deg); }

.toc-body {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #e2e2e2;
	counter-reset: toc-1;
}

.toc.is-collapsed .toc-body { display: none; }

.toc ul { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; padding: 0; }

.toc .toc-link {
	color: #444;
	font-size: .9rem;
	line-height: 1.6;
}

.toc .toc-link:hover {
	color: var(--primary);
	text-decoration: underline;
}

.toc-level-1 > li { counter-increment: toc-1; counter-reset: toc-2; }
.toc-level-1 > li > .toc-link::before { content: counter(toc-1) '. '; }

.toc-level-2 { margin-left: 1.2em; counter-reset: toc-2; }
.toc-level-2 > li { counter-increment: toc-2; counter-reset: toc-3; }
.toc-level-2 > li > .toc-link::before { content: counter(toc-1) '.' counter(toc-2) '. '; }

.toc-level-3 { margin-left: 1.2em; counter-reset: toc-3; }
.toc-level-3 > li { counter-increment: toc-3; }
.toc-level-3 > li > .toc-link::before { content: counter(toc-1) '.' counter(toc-2) '.' counter(toc-3) '. '; }

/* Full-bleed hero banner on the home page */
.home-banner {
	margin: 0 0 1.5em;
	line-height: 0;
}

.home-banner img { width: 100%; }

.home-intro { margin-bottom: 0; }

.search-notice {
	margin: 0 0 1.5em;
	padding: 12px 15px;
	background-color: #f7f7f7;
	border-left: 3px solid var(--primary);
	font-size: .95rem;
}

/* 10. Blog grid & post cards ---------------------------------------------- */
.post-grid {
	display: grid;
	gap: 0;
	grid-template-columns: repeat(4, 1fr);
	margin: 0 -15px;
}

.post-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }

.post-item { padding: 0 15px 30px; }

.post-card { position: relative; }

.post-card-image {
	position: relative;
	display: block;
	overflow: hidden;
	padding-top: 56.25%;
}

.post-card-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease, opacity .3s ease;
}

.post-card:hover .post-card-image img {
	transform: scale(1.04);
	opacity: .9;
}

.post-card-body {
	padding: 10px 10px 20px;
	text-align: center;
}

.post-card-title {
	margin: 0 0 .3em;
	font-size: 1.035rem;
	font-weight: 700;
	line-height: 1.35;
}

.post-card-title a { color: var(--heading); }
.post-card-title a:hover { color: var(--primary); }

.post-card-excerpt {
	margin: 0;
	color: var(--text);
	font-size: .9rem;
	line-height: 1.6;
}

/* 11. Sidebar widgets ----------------------------------------------------- */
.blog-layout {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -30px;
}

.blog-main {
	width: 75%;
	padding: 0 30px;
}

.post-sidebar {
	width: 25%;
	padding: 0 30px;
	border-left: 1px solid var(--border);
}

.widget { margin-bottom: 2em; }

.widget-title {
	display: block;
	color: var(--text);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.widget .is-divider { margin-left: 0; }

.recent-posts {
	margin: 0;
	padding: 0;
	list-style: none;
}

.recent-posts li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 0;
}

.recent-posts .thumb {
	flex: 0 0 auto;
	width: 45px;
	height: 45px;
	background-position: center;
	background-size: cover;
}

.recent-posts a {
	color: var(--text);
	font-size: .875rem;
	line-height: 1.4;
}

.recent-posts a:hover { color: var(--primary); }

/* 12. Footer -------------------------------------------------------------- */
.site-footer { background-color: var(--content-bg); }

.footer-widgets { padding: 30px 0; }

.footer-widgets .col { padding-bottom: 30px; }

.footer-col { width: 25%; }

.footer-title {
	margin: 0 0 .8em;
	color: var(--footer-heading);
	font-size: 1rem;
	font-weight: 700;
}

.footer-widgets p,
.footer-widgets li {
	color: var(--text);
	font-size: 1rem;
}

.footer-widgets img { margin-top: 1em; }

.footer-menu {
	margin: 0 0 1em;
	padding: 0;
	list-style: none;
}

.footer-menu li { margin: 0; }

.footer-menu a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 0;
	border-bottom: 1px solid var(--border);
	color: var(--text);
	font-size: 1rem;
}

.footer-menu a:hover { color: var(--primary); }

.footer-menu .icon {
	flex: 0 0 auto;
	width: .8em;
	height: .8em;
	color: var(--primary);
}

.footer-contact {
	margin: 0;
	padding: 0 0 0 1.2em;
	list-style: disc;
}

.footer-contact li { margin-bottom: .4em; }

.absolute-footer {
	padding: 10px 0 15px;
	background-color: var(--page-bg);
	color: rgba(255, 255, 255, .82);
	font-size: .9rem;
}

.absolute-footer strong { color: rgba(255, 255, 255, .75); }

/* 13. Back to top --------------------------------------------------------- */
.back-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	background-color: transparent;
	border: 2px solid rgba(0, 0, 0, .3);
	border-radius: 50%;
	color: rgba(0, 0, 0, .5);
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s, visibility .3s, background-color .2s, color .2s;
}

.back-to-top.is-visible { opacity: 1; visibility: visible; }

.back-to-top:hover {
	background-color: var(--primary);
	border-color: var(--primary);
	color: #fff;
}

.back-to-top .icon { width: 18px; height: 18px; }

/* 14. Responsive ---------------------------------------------------------- */
@media (max-width: 849px) {
	/* The two call-to-action buttons stay pinned to the top while scrolling.
	   The logo bar gives up its sticky behaviour so the two do not overlap. */
	.header-top {
		display: block;
		position: sticky;
		top: 0;
		z-index: 45;
	}

	.site-header.is-stuck .header-main {
		position: static;
		box-shadow: none;
		animation: none;
	}

	.header-placeholder { display: none !important; }

	.header-bottom { display: none; }
	.header-search { display: none; }
	.header-buttons { display: none; }
	.nav-toggle { display: block; }
	.back-to-top { display: none; }

	.header-inner {
		min-height: 70px;
		gap: 10px;
	}

	.site-logo {
		margin: 0 auto;
		transform: translateX(-20px);
	}

	.site-logo img { max-height: 50px; }

	.post-grid,
	.post-grid.columns-2 { grid-template-columns: 1fr; }

	.blog-layout { margin: 0 -15px; }

	.blog-main,
	.post-sidebar { width: 100%; padding: 0 15px; }

	.post-sidebar {
		margin-top: 2em;
		padding-top: 2em;
		border-top: 1px solid var(--border);
		border-left: 0;
	}

	.footer-col { width: 50%; }

	.absolute-footer { text-align: center; }

	.taxonomy-description { text-align: left; }
}

@media (max-width: 549px) {
	.footer-col { width: 100%; }

	.section-title span { font-size: 1.35rem; }

	h1, .entry-title, .page-title { font-size: 1.4rem; }

	.entry-content h2,
	.page-content h2 { font-size: 1.3rem; }

	.entry-content h3,
	.page-content h3 { font-size: 1.125rem; }

	.toc { display: block; }
}

/* 15. Landing-page content blocks ----------------------------------------- */
.home-content { text-align: left; }

.lead {
	font-size: 1.05rem;
	line-height: 1.7;
}

.breadcrumb {
	margin-bottom: 1.2em;
	color: #777;
	font-size: .85rem;
}

.breadcrumb a { color: #777; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 2px; }

/* Callout boxes */
.notice {
	margin: 0 0 1.6em;
	padding: 14px 18px;
	border-left: 4px solid var(--primary);
	border-radius: 0 4px 4px 0;
	background-color: #fdf3f3;
}

.notice p { margin: 0; font-size: .95rem; line-height: 1.65; }
.notice strong { color: var(--primary); }

.notice-warning {
	border-left-color: #e0a800;
	background-color: #fff8e6;
}

.notice-warning strong { color: #a97800; }

/* Tables — the link table and the spec tables */
.table-wrap {
	margin: 0 0 1.8em;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.link-table,
.info-table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: .95rem;
}

.link-table th,
.info-table th,
.link-table td,
.info-table td {
	padding: .7em .9em;
	border: 1px solid var(--border);
	text-align: left;
	vertical-align: top;
}

.link-table thead th,
.promo-table thead th {
	background-color: var(--primary);
	color: #fff;
	font-weight: 700;
	text-transform: uppercase;
	font-size: .85rem;
	letter-spacing: .03em;
	border-color: var(--primary);
}

.info-table tbody th {
	width: 30%;
	background-color: #f7f7f7;
	color: var(--text);
	font-weight: 700;
}

.link-table tbody tr:nth-child(even),
.promo-table tbody tr:nth-child(even) { background-color: #fafafa; }

.link-table td a {
	font-weight: 700;
	color: var(--primary);
}

.link-table td a:hover { text-decoration: underline; }

/* Numbered how-to steps */
.steps {
	margin: 0 0 1.5em;
	padding: 0;
	list-style: none;
	counter-reset: step;
}

.steps li {
	position: relative;
	margin: 0 0 .8em;
	padding-left: 2.4em;
	list-style: none;
}

.steps li::before {
	counter-increment: step;
	content: counter(step);
	position: absolute;
	top: .1em;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.7em;
	height: 1.7em;
	background-color: var(--primary);
	border-radius: 50%;
	color: #fff;
	font-size: .8rem;
	font-weight: 700;
}

/* FAQ accordion */
.faq { margin: 0 0 1.5em; }

.faq-item {
	margin-bottom: 8px;
	border: 1px solid var(--border);
	border-radius: 4px;
	background-color: #fafafa;
}

.faq-item summary {
	padding: 12px 40px 12px 15px;
	position: relative;
	color: var(--heading);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
	content: '+';
	position: absolute;
	top: 50%;
	right: 15px;
	transform: translateY(-50%);
	color: var(--primary);
	font-size: 1.3rem;
	line-height: 1;
}

.faq-item[open] summary::after { content: '3'; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }

.faq-item > p {
	margin: 0;
	padding: 12px 15px;
	font-size: .95rem;
	line-height: 1.7;
}

/* The home page ToC spans the column rather than shrink-wrapping */
.toc-wide { display: block; width: 100%; }

/* Navigation is all in-page now, so anchor targets must clear the sticky bar */
main h2[id],
main h3[id],
.toc-wide,
#top { scroll-margin-top: 100px; }

@media (max-width: 849px) {
	main h2[id],
	main h3[id],
	.toc-wide,
	#top { scroll-margin-top: 75px; }
}

@media (max-width: 549px) {
	.info-table tbody th { width: 40%; }
	.link-table, .info-table { font-size: .85rem; }
}

/* 16. Trust & legal pages -------------------------------------------------- */
.page-heading {
	margin: 0 0 .8em;
	font-size: 1.7rem;
	line-height: 1.3;
}

.page-content > .toc-wide { margin-bottom: 2em; }

/* code spans appear in the cookie / affiliate copy */
.page-content code {
	padding: .1em .35em;
	background-color: #f2f2f2;
	border-radius: 3px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .9em;
}

/* the 18+ strip above the copyright line */
.footer-legal-line {
	margin: 0 0 .4em;
	font-size: .85rem;
	line-height: 1.6;
}

.footer-legal-line a {
	color: rgba(255, 255, 255, .75);
	text-decoration: underline;
}

.footer-legal-line a:hover { color: #fff; }

.age-badge {
	display: inline-block;
	margin-right: 6px;
	padding: 0 6px;
	border: 1px solid rgba(255, 255, 255, .6);
	border-radius: 99px;
	color: rgba(255, 255, 255, .85);
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.5;
	vertical-align: 1px;
}

.footer-copy { margin: 0; }
