/*
Theme Name: SSB To Success
Theme URI: https://www.ssbtosuccess.com
Author: SSB To Success
Author URI: https://www.ssbtosuccess.com
Description: A black-and-white broadsheet-inspired WordPress theme for defence-exam publishing. Newspaper masthead, configurable mega menu, YouTube playlist section, per-post social sharing, glossary support, schema.org output and an /llms.txt endpoint for AI answer engines.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ssb-success
Tags: news, blog, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-width-template, threaded-comments, translation-ready, wide-blocks, right-sidebar
*/

/* ---------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------- */
:root {
	--ssb-ink: #111111;
	--ssb-paper: #ffffff;
	--ssb-surface: #ffffff;
	--ssb-accent: #111111;
	--ssb-secondary: #1c1c1c;
	--ssb-muted: #555555;
	--ssb-font-display: "Playfair Display", "Times New Roman", Times, serif;
	--ssb-font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
	--ssb-font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--ssb-fs-base: 18px;

	--ssb-container: 1240px;
	--ssb-wide: 1360px;
	--ssb-gutter: clamp(16px, 2.5vw, 32px);
	--ssb-gap: clamp(18px, 2.6vw, 32px);
	--ssb-radius: 2px;
	--ssb-rule: rgba(17, 17, 17, 0.18);
	--ssb-rule-soft: rgba(17, 17, 17, 0.1);
	--ssb-tint: #f2f2f2;
	--ssb-accent-soft: #ededed;
	--ssb-shadow: 0 18px 40px rgba(17, 17, 17, 0.12);
	--ssb-fast: 160ms ease;
	--ssb-topbar-h: 38px;
}

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

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

body {
	margin: 0;
	font-family: var(--ssb-font-body);
	font-size: var(--ssb-fs-base);
	line-height: 1.7;
	color: var(--ssb-ink);
	background-color: var(--ssb-paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

img,
video,
svg,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

figure {
	margin: 0;
}

p {
	margin: 0 0 1.15em;
}

ul,
ol {
	margin: 0 0 1.25em;
	padding-left: 1.25em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--ssb-font-display);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin: 0 0 0.5em;
	color: var(--ssb-ink);
	text-wrap: balance;
}

h1 {
	font-size: clamp(2.2rem, 4.6vw, 3.8rem);
}

h2 {
	font-size: clamp(1.65rem, 3vw, 2.4rem);
}

h3 {
	font-size: clamp(1.25rem, 2vw, 1.6rem);
}

h4 {
	font-size: 1.15rem;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--ssb-ink);
	text-decoration: underline;
	text-decoration-thickness: 2px;
}

button {
	font: inherit;
	color: inherit;
	cursor: pointer;
}

input,
textarea,
select {
	font: inherit;
}

::selection {
	background: var(--ssb-accent);
	color: #fff;
}

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

[hidden] {
	display: none !important;
}

/* ---------------------------------------------------------------
   3. Utilities
   --------------------------------------------------------------- */
.screen-reader-text,
.sr-only {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	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 {
	background: var(--ssb-paper);
	clip: auto;
	clip-path: none;
	color: var(--ssb-ink);
	display: block;
	font-family: var(--ssb-font-ui);
	font-size: 13px;
	height: auto;
	left: 16px;
	padding: 12px 18px;
	top: 16px;
	width: auto;
	z-index: 100000;
}

.ssb-skip-link {
	position: fixed;
	top: -100px;
	left: 16px;
	z-index: 10000;
	background: var(--ssb-ink);
	color: var(--ssb-paper);
	font-family: var(--ssb-font-ui);
	font-size: 13px;
	padding: 12px 18px;
	text-decoration: none;
	transition: top var(--ssb-fast);
}

.ssb-skip-link:focus {
	top: 16px;
	color: var(--ssb-paper);
}

.ssb-container {
	width: min(100% - (var(--ssb-gutter) * 2), var(--ssb-container));
	margin-inline: auto;
}

.ssb-container--wide {
	width: min(100% - (var(--ssb-gutter) * 2), var(--ssb-wide));
}

.ssb-container--full {
	width: min(100% - (var(--ssb-gutter) * 2), 1600px);
}

.ssb-icon {
	display: inline-block;
	vertical-align: -0.14em;
	flex: none;
}

.ssb-eyebrow {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 6px;
	font-family: var(--ssb-font-ui);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ssb-accent);
}

.ssb-eyebrow--light {
	color: #d9d9d9;
}

.ssb-kicker {
	display: inline-block;
	font-family: var(--ssb-font-ui);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ssb-accent);
	text-decoration: none;
	margin-bottom: 8px;
}

.ssb-kicker:hover {
	text-decoration: underline;
}

.ssb-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 14px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--ssb-font-ui);
	font-size: 10.5px;
	font-weight: 500;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ssb-muted);
}

.ssb-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ssb-meta__item .ssb-icon {
	opacity: 0.7;
}

/* Media, placeholders and monograms */
.ssb-media {
	overflow: hidden;
	background: var(--ssb-tint);
	margin: 0;
	position: relative;
}

.ssb-media__link {
	display: block;
	height: 100%;
}

.ssb-media__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ssb-media__placeholder {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	min-height: 160px;
	background:
		repeating-linear-gradient(135deg, rgba(17, 17, 17, 0.035) 0 1px, transparent 1px 9px),
		var(--ssb-tint);
	color: rgba(17, 17, 17, 0.28);
}

.ssb-media__monogram {
	font-family: var(--ssb-font-display);
	font-weight: 900;
	font-size: clamp(1.6rem, 4vw, 3rem);
	letter-spacing: 0.08em;
	border: 2px solid currentColor;
	padding: 4px 12px;
	line-height: 1;
}

.ssb-media__placeholder--thumb {
	min-height: 0;
}

.ssb-media__placeholder--thumb .ssb-media__monogram {
	font-size: 1rem;
	border-width: 1px;
	padding: 3px 6px;
}

/* ---------------------------------------------------------------
   4. Buttons and forms
   --------------------------------------------------------------- */
.ssb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 20px;
	border: 1px solid var(--ssb-ink);
	background: var(--ssb-ink);
	color: var(--ssb-paper);
	font-family: var(--ssb-font-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
	transition: background var(--ssb-fast), color var(--ssb-fast), border-color var(--ssb-fast);
}

.ssb-btn:hover {
	background: var(--ssb-paper);
	border-color: var(--ssb-ink);
	color: var(--ssb-ink);
}

.ssb-btn--accent {
	background: var(--ssb-ink);
	border-color: var(--ssb-ink);
	color: var(--ssb-paper);
}

.ssb-btn--accent:hover {
	background: var(--ssb-paper);
	border-color: var(--ssb-ink);
	color: var(--ssb-ink);
}

.ssb-btn--light {
	background: var(--ssb-paper);
	border-color: var(--ssb-paper);
	color: var(--ssb-ink);
}

.ssb-btn--light:hover {
	background: transparent;
	border-color: var(--ssb-paper);
	color: var(--ssb-paper);
}

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

.ssb-btn--ghost:hover {
	background: var(--ssb-ink);
	color: var(--ssb-paper);
	border-color: var(--ssb-ink);
}

.ssb-btn--lg {
	padding: 15px 26px;
	font-size: 12px;
}

.ssb-icon-btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid transparent;
	background: transparent;
	color: var(--ssb-ink);
	transition: background var(--ssb-fast), color var(--ssb-fast), border-color var(--ssb-fast);
}

.ssb-icon-btn:hover {
	background: var(--ssb-ink);
	border-color: var(--ssb-ink);
	color: var(--ssb-paper);
}

.ssb-searchform {
	display: flex;
	align-items: stretch;
	width: 100%;
	border: 1px solid var(--ssb-ink);
	background: var(--ssb-surface);
}

.ssb-searchform__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	padding: 13px 16px;
	font-family: var(--ssb-font-ui);
	font-size: 14px;
	color: var(--ssb-ink);
}

.ssb-searchform__input:focus {
	outline: none;
}

.ssb-searchform:focus-within {
	outline: 2px solid var(--ssb-accent);
	outline-offset: 2px;
}

.ssb-searchform__submit {
	display: inline-grid;
	place-items: center;
	width: 50px;
	border: 0;
	background: var(--ssb-ink);
	color: var(--ssb-paper);
	transition: background var(--ssb-fast);
}

.ssb-searchform__submit:hover {
	background: var(--ssb-muted);
}

.ssb-searchform--glossary {
	border-color: var(--ssb-rule);
}

.ssb-widget input[type="text"],
.ssb-widget input[type="search"],
.ssb-widget input[type="email"],
.ssb-widget input[type="url"],
.ssb-widget select {
	width: 100%;
	border: 1px solid var(--ssb-rule);
	background: var(--ssb-surface);
	padding: 9px 12px;
	font-family: var(--ssb-font-ui);
	font-size: 13px;
	color: var(--ssb-ink);
}

/* ---------------------------------------------------------------
   5. Masthead & top bar
   --------------------------------------------------------------- */
.ssb-topbar {
	border-bottom: 1px solid var(--ssb-ink);
	background: var(--ssb-paper);
}

.ssb-topbar__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	min-height: var(--ssb-topbar-h);
	font-family: var(--ssb-font-ui);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--ssb-muted);
}

.ssb-topbar__location {
	justify-self: start;
}

.ssb-topbar__edition {
	justify-self: center;
	color: var(--ssb-ink);
}

.ssb-topbar__date {
	justify-self: end;
}

.ssb-masthead {
	padding: clamp(22px, 4vw, 44px) 0 clamp(16px, 2.4vw, 26px);
	border-bottom: 3px double var(--ssb-ink);
	background: var(--ssb-paper);
}

.ssb-masthead__inner {
	text-align: center;
}

.ssb-branding__logo {
	margin: 0 0 8px;
}

.ssb-branding__logo img {
	display: inline-block;
	max-height: 110px;
	width: auto;
}

.ssb-branding__title {
	margin: 0;
	font-family: var(--ssb-font-display);
	font-weight: 900;
	font-size: clamp(2.3rem, 7.4vw, 6.4rem);
	line-height: 0.94;
	letter-spacing: -0.015em;
	text-transform: uppercase;
	text-wrap: balance;
}

.ssb-branding__title a {
	text-decoration: none;
	color: inherit;
}

.ssb-branding__title a:hover {
	text-decoration: underline;
	text-decoration-thickness: 3px;
}

.ssb-masthead__tagline {
	margin: 10px 0 0;
	font-family: var(--ssb-font-display);
	font-style: italic;
	font-size: clamp(0.95rem, 1.5vw, 1.25rem);
	color: var(--ssb-muted);
	letter-spacing: 0.02em;
}

.ssb-nav-sentinel {
	height: 1px;
}

/* ---------------------------------------------------------------
   6. Navigation bar
   --------------------------------------------------------------- */
.ssb-header__bar {
	position: relative;
	z-index: 120;
	border-bottom: 1px solid var(--ssb-ink);
	background: var(--ssb-paper);
}

body.ssb-nav-open .ssb-header__bar {
	z-index: 330;
}

.ssb-header__bar.is-fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 300;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	animation: ssb-drop-in 180ms ease;
}

@keyframes ssb-drop-in {
	from {
		transform: translateY(-100%);
	}
	to {
		transform: translateY(0);
	}
}

.ssb-header__inner {
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
}

.ssb-menu-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	border: 0;
	background: transparent;
	padding: 12px 0;
	font-family: var(--ssb-font-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ssb-nav {
	position: static;
	flex: 1;
	min-width: 0;
}

.ssb-nav__mobile-head {
	display: none;
}

.ssb-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: clamp(12px, 1.8vw, 26px);
	list-style: none;
	margin: 0;
	padding: 0;
}

.ssb-menu__item {
	position: relative;
	display: flex;
	align-items: center;
}

.ssb-menu__link {
	display: block;
	padding: 15px 0;
	font-family: var(--ssb-font-ui);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.ssb-menu__link:hover {
	color: var(--ssb-ink);
	box-shadow: inset 0 -3px 0 var(--ssb-ink);
}

.ssb-menu__item.is-current > .ssb-menu__link {
	box-shadow: inset 0 -3px 0 var(--ssb-accent);
	color: var(--ssb-accent);
}

.ssb-menu__toggle {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 28px;
	padding: 0;
	margin-left: 3px;
	border: 0;
	background: transparent;
	color: var(--ssb-muted);
	transition: color var(--ssb-fast), transform var(--ssb-fast);
}

.ssb-menu__item.is-open > .ssb-menu__toggle {
	color: var(--ssb-accent);
	transform: rotate(180deg);
}

.ssb-header__actions {
	display: flex;
	align-items: center;
	gap: 4px;
	flex: none;
	margin-left: auto;
}

.ssb-header__social {
	display: flex;
	gap: 2px;
}

.ssb-header__social .ssb-social__link {
	width: 34px;
	height: 34px;
}

/* Dropdown menus */
.ssb-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 210;
	min-width: 260px;
	padding: 8px 0;
	background: var(--ssb-surface);
	border-top: 2px solid var(--ssb-accent);
	box-shadow: var(--ssb-shadow);
	visibility: hidden;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity var(--ssb-fast), transform var(--ssb-fast), visibility var(--ssb-fast);
}

.ssb-menu__item:hover > .ssb-dropdown,
.ssb-menu__item:focus-within > .ssb-dropdown,
.ssb-menu__item.is-open > .ssb-dropdown {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}

.ssb-menu__item:last-child > .ssb-dropdown {
	left: auto;
	right: 0;
}

.ssb-submenu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ssb-submenu__item {
	position: relative;
}

.ssb-submenu__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 20px;
	font-family: var(--ssb-font-ui);
	font-size: 13px;
	text-decoration: none;
	line-height: 1.4;
}

.ssb-submenu__link:hover {
	background: var(--ssb-tint);
	color: var(--ssb-accent);
}

.ssb-submenu__arrow {
	opacity: 0.5;
}

.ssb-submenu--nested {
	position: absolute;
	top: -8px;
	left: 100%;
	min-width: 240px;
	padding: 8px 0;
	background: var(--ssb-surface);
	border-top: 2px solid var(--ssb-accent);
	box-shadow: var(--ssb-shadow);
	visibility: hidden;
	opacity: 0;
}

.ssb-submenu__item:hover > .ssb-submenu--nested,
.ssb-submenu__item:focus-within > .ssb-submenu--nested {
	visibility: visible;
	opacity: 1;
}

/* Mega menu */
.ssb-mega {
	position: fixed;
	top: var(--ssb-mega-top, 120px);
	left: 50%;
	z-index: 240;
	width: min(calc(100vw - (var(--ssb-gutter) * 2)), var(--ssb-wide));
	max-height: calc(100vh - var(--ssb-mega-top, 120px) - 24px);
	overflow-y: auto;
	background: var(--ssb-surface);
	border-top: 2px solid var(--ssb-ink);
	border-bottom: 1px solid var(--ssb-rule);
	box-shadow: var(--ssb-shadow);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, 10px);
	transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.ssb-mega.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.ssb-mega__inner {
	display: flex;
	gap: clamp(20px, 3vw, 40px);
	padding: clamp(22px, 3vw, 36px) clamp(20px, 3vw, 40px);
}

.ssb-mega__grid {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 24px 32px;
	align-items: start;
}

.ssb-mega__heading {
	display: block;
	padding-bottom: 8px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--ssb-ink);
	font-family: var(--ssb-font-ui);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--ssb-ink);
}

.ssb-mega__heading:hover {
	color: var(--ssb-accent);
}

.ssb-mega__desc {
	margin: 0 0 10px;
	font-family: var(--ssb-font-ui);
	font-size: 12px;
	line-height: 1.5;
	color: var(--ssb-muted);
}

.ssb-mega__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ssb-mega__item {
	margin: 0;
}

.ssb-mega__item a {
	display: block;
	padding: 5px 0;
	font-family: var(--ssb-font-body);
	font-size: 14px;
	line-height: 1.4;
	text-decoration: none;
	color: var(--ssb-ink);
}

.ssb-mega__item a:hover {
	color: var(--ssb-accent);
	text-decoration: underline;
}

.ssb-mega__spotlight {
	flex: none;
	width: 290px;
	padding-left: clamp(18px, 2.4vw, 30px);
	border-left: 1px solid var(--ssb-rule);
}

.ssb-mega__spotlight .ssb-widget {
	border-top: 0;
	padding-top: 0;
}

.ssb-nav__social.ssb-social {
	display: none;
}

/* ---------------------------------------------------------------
   7. Headline ticker
   --------------------------------------------------------------- */
.ssb-ticker {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 0 max(var(--ssb-gutter), calc((100vw - var(--ssb-wide)) / 2)) 0 max(var(--ssb-gutter), calc((100vw - var(--ssb-wide)) / 2));
	min-height: 38px;
	border-top: 1px solid var(--ssb-rule);
	background: var(--ssb-surface);
	overflow: hidden;
}

.ssb-ticker__label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	flex: none;
	padding: 5px 10px;
	background: var(--ssb-accent);
	color: #fff;
	font-family: var(--ssb-font-ui);
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ssb-ticker__pulse {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
	animation: ssb-pulse 2s ease-in-out infinite;
}

@keyframes ssb-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.25;
	}
}

.ssb-ticker__viewport {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.ssb-ticker__track {
	display: flex;
	width: max-content;
	align-items: center;
	animation: ssb-marquee 55s linear infinite;
}

.ssb-ticker:hover .ssb-ticker__track,
.ssb-ticker:focus-within .ssb-ticker__track {
	animation-play-state: paused;
}

.ssb-ticker__item {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding-right: 22px;
	font-family: var(--ssb-font-body);
	font-size: 13px;
	color: var(--ssb-ink);
	text-decoration: none;
	white-space: nowrap;
}

.ssb-ticker__item::after {
	content: "";
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--ssb-accent);
	flex: none;
}

.ssb-ticker__item:hover {
	color: var(--ssb-accent);
	text-decoration: underline;
}

.ssb-ticker__live {
	flex: none;
	font-family: var(--ssb-font-ui);
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ssb-muted);
}

@keyframes ssb-marquee {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

/* ---------------------------------------------------------------
   8. Search overlay
   --------------------------------------------------------------- */
.ssb-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 400;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: clamp(40px, 10vh, 120px) var(--ssb-gutter) 40px;
	background: rgba(17, 17, 17, 0.55);
	backdrop-filter: blur(4px);
	overflow-y: auto;
}

.ssb-search-overlay__panel {
	width: min(760px, 100%);
	background: var(--ssb-paper);
	border-top: 4px solid var(--ssb-accent);
	box-shadow: var(--ssb-shadow);
	padding: clamp(20px, 3vw, 36px);
	animation: ssb-fade-up 180ms ease;
}

@keyframes ssb-fade-up {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ssb-search-overlay__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 14px;
}

.ssb-search-overlay .ssb-searchform__input {
	padding: 18px 20px;
	font-size: 18px;
}

.ssb-search-overlay .ssb-searchform__submit {
	width: 64px;
}

.ssb-search-overlay__hint {
	margin: 14px 0 0;
	font-family: var(--ssb-font-ui);
	font-size: 12px;
	color: var(--ssb-muted);
}

.ssb-scrim {
	position: fixed;
	inset: 0;
	z-index: 310;
	background: rgba(17, 17, 17, 0.45);
}

/* ---------------------------------------------------------------
   9. Social lists
   --------------------------------------------------------------- */
.ssb-social {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ssb-social__link {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	color: inherit;
	text-decoration: none;
	transition: color var(--ssb-fast), background var(--ssb-fast);
}

.ssb-social__link:hover {
	background: var(--ssb-tint);
	color: var(--ssb-ink);
}

.ssb-footer .ssb-social__link:hover {
	color: #d9d9d9;
}

/* ---------------------------------------------------------------
   10. Footer
   --------------------------------------------------------------- */
.ssb-footer {
	background: var(--ssb-ink);
	color: rgba(255, 255, 255, 0.76);
	padding: clamp(36px, 5vw, 60px) 0 20px;
	font-size: 15px;
}

.ssb-footer a {
	color: rgba(255, 255, 255, 0.86);
	text-decoration: none;
}

.ssb-footer a:hover {
	color: #d9d9d9;
	text-decoration: underline;
}

.ssb-footer__top {
	display: grid;
	grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
	gap: clamp(28px, 4vw, 56px);
	padding-bottom: clamp(26px, 4vw, 44px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.ssb-footer__title {
	margin: 0;
	font-family: var(--ssb-font-display);
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	font-weight: 900;
	line-height: 1;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: var(--ssb-paper);
}

.ssb-footer__title a {
	color: var(--ssb-paper);
	text-decoration: none;
}

.ssb-footer__tagline {
	margin: 10px 0 16px;
	font-family: var(--ssb-font-display);
	font-style: italic;
	font-size: 15px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.6);
}

.ssb-footer__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 26px 32px;
}

.ssb-footer__col .ssb-widget {
	border: 0;
	padding: 0;
	margin: 0 0 22px;
}

.ssb-footer .ssb-widget__title,
.ssb-footer__col h2 {
	margin: 0 0 12px;
	padding-bottom: 7px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
	font-family: var(--ssb-font-ui);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ssb-paper);
}

.ssb-footer__list,
.ssb-footer .ssb-widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--ssb-font-ui);
	font-size: 13px;
}

.ssb-footer__list li,
.ssb-footer .ssb-widget li {
	padding: 6px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
	line-height: 1.45;
}

.ssb-footer .ssb-widget .wp-block-latest-posts__post-date,
.ssb-footer .ssb-widget .rss-date {
	display: block;
	color: rgba(255, 255, 255, 0.45);
	font-size: 11px;
}

.ssb-footer .ssb-widget .tagcloud a {
	display: inline-block;
	margin: 0 4px 6px 0;
	padding: 3px 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 11px !important;
}

.ssb-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-top: 18px;
	font-family: var(--ssb-font-ui);
	font-size: 11px;
	letter-spacing: 0.02em;
}

.ssb-footer__legal {
	margin: 0;
	color: rgba(255, 255, 255, 0.55);
}

.ssb-footer__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ssb-footer__menu a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.ssb-to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 200;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--ssb-ink);
	background: var(--ssb-paper);
	color: var(--ssb-ink);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
	transition: background var(--ssb-fast), color var(--ssb-fast);
}

.ssb-to-top:hover {
	background: var(--ssb-ink);
	color: var(--ssb-paper);
}

body.ssb-no-scroll {
	overflow: hidden;
}
