/*
 * ROL Classic layout chrome (navbar + footer) for the news site.
 * Ported from ragnarok-p2e-interface-oldschool: styles/navbar.scss, styles/footer.scss, styles/_tokens.scss.
 * Markup: parts/header.html, parts/footer.html. Behaviour: assets/rolc/layout.js.
 *
 * Tokens: $ro-blue #123175, $ro-blue-hover #0d2354, $ro-navy #091124,
 * $ro-footer-text #deedfe, $ro-footer-muted #adb5bd, canvas/desktop 1440px.
 */

:root {
	--rolc-blue: #123175;
	--rolc-blue-hover: #0d2354;
	--rolc-navy: #091124;
	--rolc-footer-text: #deedfe;
	--rolc-footer-muted: #adb5bd;
	--rolc-font: "Barlow", "IBM Plex Sans Thai", sans-serif;
}

/* ------------------------------------------------------------- backdrop */

/* The main site's hero artwork pinned behind every page (ro-hero-backdrop in
   styles/_tokens.scss): the bitmap stretched to a max(1024px, 100lvh) frame,
   a #d1d8e5 hard-light wash over it, then a fade to white. Layers listed top
   to bottom. `html body` outranks the theme's body background rule. */
html body {
	background-color: #ffffff;
	background-image:
		linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%),
		linear-gradient(#d1d8e5, #d1d8e5),
		url("img/hero-bg.png");
	background-blend-mode: normal, hard-light, normal;
	background-position: center top;
	background-size: 100% max(1024px, 100lvh);
	background-repeat: no-repeat;
	background-attachment: fixed;
}

/* The legacy ROLA CSS paints `main` with bg-2.png and a black bottom fade, and
   the home template adds a contrast-colour preset (which is !important). */
body main.wp-block-group {
	background: none !important;
}

.site-navbar *,
.site-footer * {
	box-sizing: border-box;
}

/* The parent theme outlines everything on :focus (style.css,
   :where(.wp-site-blocks *:focus)), so a mouse click on a menu link or a
   dropdown left a black frame behind. Drop it when the focus came from the
   pointer; keyboard focus (:focus-visible) keeps its ring. */
.wp-site-blocks :focus:not(:focus-visible) {
	outline: none;
}

.site-navbar img,
.site-footer img {
	display: block;
	max-width: none;
}

.site-navbar a,
.site-footer a {
	text-decoration: none;
}

.site-navbar button {
	margin: 0;
	border: none;
	background: none;
	cursor: pointer;
	font: inherit;
}

/* The main site's navbar is sticky and floats over the page backdrop. Sticky
   cannot work here (the template-part wrapper is only as tall as the nav, and
   the legacy theme CSS clips overflow on an ancestor), so pin the wrapper with
   fixed positioning; the page then starts under the navbar, as on the main site. */
header.wp-block-template-part:has(> .site-navbar) {
	position: fixed;
	top: var(--wp-admin--admin-bar--height, 0px);
	right: 0;
	left: 0;
	z-index: 60;
	margin: 0;
	pointer-events: none;
}

header.wp-block-template-part > .site-navbar .navbar-pill {
	pointer-events: auto;
}

/* ---------------------------------------------------------------- navbar */

.site-navbar {
	line-height: normal;
	width: min(1340px, calc(100% - 32px));
	margin: 0 auto;
	padding-top: 18px;
}

.site-navbar .navbar-pill {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 8px 16px;
	border: 1px solid rgba(255, 255, 255, 0.56);
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.8);
	box-shadow: 0 2px 8px 0 rgba(9, 61, 175, 0.15);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.site-navbar .navbar-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.site-navbar .navbar-logo {
	position: relative;
	display: block;
}

/* the main site's logo (public/images/game-logo.webp, 1200x672) at its 91x51 */
.site-navbar .navbar-logo img {
	width: 91px;
	height: 51px;
	object-fit: cover;
}

.site-navbar .navbar-menu {
	display: flex;
	align-items: center;
	gap: 8px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.site-navbar .navbar-menu .menu-divider {
	width: 1px;
	height: 24px;
	background: #012258;
}

/* Figma 26557:7456 — four equal 146px slots, label centred in each */
.site-navbar .navbar-menu .menu-item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 146px;
	padding: 8px 0;
	border-radius: 8px;
	color: #012258;
	font-family: var(--rolc-font);
	font-size: 16px;
	font-weight: 500;
	white-space: nowrap;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.16));
}

.site-navbar .navbar-menu .menu-item:hover {
	background: rgba(18, 49, 117, 0.06);
}

.site-navbar.is-menu-visible .navbar-menu {
	opacity: 1;
	pointer-events: auto;
}

.site-navbar.is-menu-visible .navbar-lang {
	border-radius: 8px;
}

/* Pre-Register pill at navbar scale (Figma 26557:7482) */
.site-navbar .navbar-cta {
	position: relative;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	min-width: 216px;
	height: 47.481px;
	padding: 0 14px 0 66px;
	cursor: pointer;
}

.site-navbar .navbar-cta .cta-pill {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 15px;
	border: 2px solid #ffcddc;
	border-radius: 24px;
	background:
		radial-gradient(ellipse 50px 30px at 10.8% 60.6%, rgba(231, 97, 150, 0.9) 0%, rgba(231, 97, 150, 0) 100%) no-repeat,
		linear-gradient(180deg, #ffcddc 0%, #fa97c0 47.115%, #f279aa 100%);
	box-shadow:
		0 0 8px 0 #ffa0c3,
		0 0 8px 0 #ffa0c3,
		inset 5px -6px 16.4px 0 #c8457a;
	pointer-events: none;
}

.site-navbar .navbar-cta .cta-poring {
	position: absolute;
	top: 0.24px;
	left: 0;
	filter: drop-shadow(-3px 0 8px #ffa0c3);
	pointer-events: none;
}

.site-navbar .navbar-cta .cta-poring img {
	width: 60px;
	height: 47px;
	object-fit: cover;
}

.site-navbar .navbar-cta .cta-label {
	position: relative;
	/* Barlow sits capitals ~1.5px below the line box centre; all-caps has no
	   descenders to balance it, so lift the label onto the pill centre. */
	top: -1.5px;
	color: #ffffff;
	font-family: var(--rolc-font);
	font-size: 20px;
	font-weight: 700;
	line-height: normal;
	text-align: center;
	/* DOWNLOAD in capitals, in the navbar and the phone menu alike */
	text-transform: uppercase;
	text-shadow:
		0 4px 4px rgba(0, 0, 0, 0.25),
		0 0 2px #b41253;
	white-space: nowrap;
}

.site-navbar .navbar-cta:hover .cta-pill {
	filter: brightness(1.04);
}

.site-navbar .navbar-right {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* Logged-out call to action (Figma 25074:1657) */
.site-navbar .navbar-login {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 9999px;
	background: var(--rolc-blue);
}

.site-navbar .navbar-login span {
	color: #ffffff;
	font-family: var(--rolc-font);
	font-size: 16px;
	font-weight: 700;
	white-space: nowrap;
}

.site-navbar .navbar-login .login-icon {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
}

.site-navbar .navbar-login:hover {
	background: var(--rolc-blue-hover);
}

/* Login or the account chip, never both (layout.js syncAccount); [hidden] has
   to beat the display: flex above. */
.site-navbar .navbar-login[hidden],
.site-navbar [data-rolc-account][hidden] {
	display: none;
}

/* Signed-in account chip — the main site's .navbar-chip (styles/navbar.scss) */
.site-navbar .navbar-chip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 130px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.site-navbar .navbar-chip .chip-label {
	display: flex;
	align-items: center;
	gap: 8px;
}

.site-navbar .navbar-chip .chip-icon {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
}

.site-navbar .navbar-chip span {
	color: var(--rolc-navy);
	font-family: var(--rolc-font);
	font-size: 16px;
	font-weight: 500;
	white-space: nowrap;
}

.site-navbar .navbar-chip:focus-visible {
	outline: 2px solid var(--rolc-blue);
	outline-offset: 4px;
	border-radius: 4px;
}

.site-navbar .navbar-account {
	position: relative;
	flex-shrink: 0;
}

/* Menu button and its dropdown — phones and tablets only (< 1024px). */
.site-navbar .navbar-mobile {
	display: none;
}

.site-navbar .navbar-burger {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 9999px;
	/* bare icon, no chip behind it */
	background: none;
	color: var(--rolc-blue);
	cursor: pointer;
}

.site-navbar .navbar-burger:hover,
.site-navbar .navbar-burger[aria-expanded="true"] {
	color: var(--rolc-blue-hover);
}

.site-navbar .navbar-burger:focus-visible {
	outline: 2px solid var(--rolc-blue);
	outline-offset: 2px;
}

.site-navbar .navbar-mobile .navbar-mobile-menu {
	/* the button sits at the left end of the bar, so the menu opens rightward */
	right: auto;
	left: 0;
	/* solid: it opens over the page copy, and a backdrop blur nested in the
	   already-blurred pill does not apply, so 95% white let text show through */
	background: #ffffff;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	min-width: 220px;
	gap: 2px;
}

.site-navbar .navbar-mobile .navbar-mobile-menu .menu-action {
	display: block;
	padding: 12px 14px;
	font-size: 16px;
	font-weight: 500;
}

/* Download: the desktop pill itself (Poring and all), full width at the
   end of the menu. */
.site-navbar .navbar-mobile .navbar-cta--menu {
	display: flex;
	min-width: 0;
	margin: 8px 4px 4px;
}

.site-navbar .navbar-menu-items {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 10;
	display: flex;
	flex-direction: column;
	min-width: 100%;
	padding: 4px;
	border: 1px solid rgba(255, 255, 255, 0.56);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 8px 24px 0 rgba(9, 61, 175, 0.15);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.site-navbar .navbar-menu-items[hidden] {
	display: none;
}

.site-navbar .navbar-menu-items .menu-action {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	color: var(--rolc-blue);
	font-family: var(--rolc-font);
	font-size: 14px;
	text-align: left;
	white-space: nowrap;
}

.site-navbar .navbar-menu-items .menu-action:hover {
	background: rgba(39, 91, 144, 0.08);
}

.site-navbar .navbar-menu-items .menu-action.is-active {
	font-weight: 700;
}

.site-navbar .chip-caret {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
}

.site-navbar .navbar-divider {
	width: 1px;
	height: 24px;
	background: var(--rolc-blue);
}

.site-navbar .navbar-lang {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	border-radius: 9999px;
}

.site-navbar .navbar-lang span {
	color: var(--rolc-blue);
	font-family: var(--rolc-font);
	font-size: 16px;
	white-space: nowrap;
}

.site-navbar .navbar-lang .lang-label {
	min-width: 30px;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
	line-height: normal;
	position: relative;
	width: 100%;
	height: 206px;
	/* the main site paints this white; here the page backdrop shows through */
	background: transparent;
	overflow: hidden;
}

.site-footer p {
	margin: 0;
}

.site-footer .footer-inner {
	position: relative;
	width: 1440px;
	height: 100%;
	margin: 0 auto;
}

/* publisher plate */
.site-footer .footer-brand {
	position: absolute;
	top: 0;
	left: 0;
	width: 548px;
	height: 206px;
	border-top-right-radius: 48px;
	background: var(--rolc-blue);
}

/* carries the plate out to the left screen edge; the footer clips it */
.site-footer .footer-brand::before {
	content: "";
	position: absolute;
	top: 0;
	right: 100%;
	width: 100vw;
	height: 100%;
	background: var(--rolc-blue);
}

.site-footer .brand-logos {
	position: absolute;
	top: 36px;
	left: 100px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.site-footer .gravity-logo {
	display: flex;
	align-items: center;
	gap: 5px;
}

.site-footer .logo-mark {
	position: relative;
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	overflow: hidden;
}

.site-footer .logo-mark img {
	position: absolute;
	width: auto;
	height: auto;
}

.site-footer .logo-mark .mark-top {
	inset: 3.05% 12.85% 43.63% 12.92%;
	width: calc(100% - 12.85% - 12.92%);
	height: calc(100% - 3.05% - 43.63%);
}

.site-footer .logo-mark .mark-bottom {
	inset: 43.16% 7.74% 5% 8.11%;
	width: calc(100% - 7.74% - 8.11%);
	height: calc(100% - 43.16% - 5%);
}

.site-footer .logo-wordmark {
	flex-shrink: 0;
	width: 107.999px;
	height: 16px;
}

.site-footer .brand-divider {
	flex-shrink: 0;
	width: 1px;
	height: 24px;
	background: var(--rolc-footer-muted);
}

.site-footer .maxion-logo {
	flex-shrink: 0;
	width: 138px;
	height: 30px;
}

.site-footer .brand-publisher,
.site-footer .brand-copyright {
	position: absolute;
	left: 100px;
	transform: translateY(-50%);
	color: var(--rolc-footer-text);
	font-family: var(--rolc-font);
	font-size: 14px;
	line-height: 24px;
	white-space: nowrap;
}

.site-footer .brand-publisher {
	top: 134px;
}

.site-footer .brand-copyright {
	top: 158px;
}

.site-footer .footer-nav {
	position: absolute;
	top: 73px;
	left: calc(33.33% + 84px);
	display: flex;
	align-items: center;
	gap: 16px;
}

.site-footer .footer-nav .nav-entry {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* 5px square rotated inside a 7.071px (5 * √2) box */
.site-footer .footer-nav .nav-diamond {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 7.071px;
	height: 7.071px;
}

.site-footer .footer-nav .nav-diamond::before {
	content: "";
	width: 5px;
	height: 5px;
	background: rgba(39, 91, 144, 0.36);
	transform: rotate(45deg);
}

.site-footer .footer-nav a {
	color: var(--rolc-blue);
	font-family: var(--rolc-font);
	font-size: 20px;
	font-weight: 500;
	white-space: nowrap;
}

.site-footer .footer-nav a:hover {
	color: var(--rolc-blue-hover);
}

.site-footer .footer-rule {
	position: absolute;
	top: 129px;
	left: calc(33.33% + 84px);
	width: 776px;
	height: 1px;
	background: rgba(39, 91, 144, 0.24);
}

.site-footer .footer-legal {
	position: absolute;
	top: 146px;
	left: calc(33.33% + 84px);
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--rolc-blue);
	font-family: var(--rolc-font);
	font-size: 14px;
	line-height: 24px;
	white-space: nowrap;
}

.site-footer .footer-legal a {
	color: inherit;
}

.site-footer .footer-legal a:hover {
	color: var(--rolc-blue-hover);
}

.site-footer .footer-socials {
	position: absolute;
	top: 146px;
	left: calc(58.33% + 63px);
	display: flex;
	align-items: center;
	gap: 16px;
}

.site-footer .footer-socials .social-icon {
	flex-shrink: 0;
	position: relative;
}

/* <picture>: blue icons on the light desktop footer, white ones on the dark
   phone plate (< 1024px) */
.site-footer .footer-socials picture {
	display: block;
}

.site-footer .footer-socials .social-icon:hover {
	opacity: 0.8;
}

/* EN/TH switch (Figma 27005:265): white, outlined; its menu opens upward,
   inside the footer's 206px (which clips anything below). */
.site-footer .footer-lang {
	position: absolute;
	top: 140px;
	left: calc(83.33% + 50px);
}

.site-footer .footer-lang-button {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	/* Figma strokes inside the box: 8/16px padding less the 1px border */
	padding: 7px 7px 7px 15px;
	border: 1px solid #000000;
	border-radius: 8px;
	background: #ffffff;
	color: var(--rolc-navy);
	font-family: var(--rolc-font);
	font-size: 16px;
	font-weight: 600;
	line-height: normal;
	cursor: pointer;
}

.site-footer .footer-lang-button:hover {
	background: #f4f6fa;
}

.site-footer .footer-lang-button:focus-visible {
	outline: 2px solid var(--rolc-blue);
	outline-offset: 2px;
}

.site-footer .footer-lang-button img {
	width: 18px;
	height: 18px;
}

.site-footer .footer-lang .navbar-menu-items {
	position: absolute;
	right: 0;
	bottom: calc(100% + 8px);
	z-index: 10;
	display: flex;
	flex-direction: column;
	min-width: 100%;
	padding: 4px;
	border: 1px solid rgba(39, 91, 144, 0.16);
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 8px 24px 0 rgba(9, 61, 175, 0.15);
}

.site-footer .footer-lang .navbar-menu-items[hidden] {
	display: none;
}

.site-footer .footer-lang .menu-action {
	margin: 0;
	padding: 8px 12px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--rolc-blue);
	font-family: var(--rolc-font);
	font-size: 14px;
	text-align: left;
	cursor: pointer;
}

.site-footer .footer-lang .menu-action:hover {
	background: rgba(39, 91, 144, 0.08);
}

.site-footer .footer-lang .menu-action.is-active {
	font-weight: 700;
}

/* The navbar's EN/TH chip drives GTranslate, so its own floating switcher stays hidden. */
.gtranslate_wrapper .gt_float_switcher {
	display: none !important;
}

/* --------------------------------------------------------- scrollbar */

/* Site-wide scrollbar in the brand blue: a pale blue-grey track and a
   $ro-blue thumb that firms up on hover. 8px, as in the repo's globals.scss
   (whose dark #202020 track belongs to the old dark theme). The thumb's
   transparent border, clipped away, leaves it floating 2px inside the track.
   Chromium ignores every ::-webkit-scrollbar rule once the standard
   scrollbar-color is set, so that property goes to Firefox alone. */
@supports (-moz-appearance: none) {
	html {
		scrollbar-color: rgba(18, 49, 117, 0.45) #e6ebf3; /* thumb, track */
		scrollbar-width: thin;
	}
}

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: #e6ebf3;
}

::-webkit-scrollbar-thumb {
	border: 2px solid transparent;
	border-radius: 9999px;
	background: rgba(18, 49, 117, 0.45);
	background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
	background-color: var(--rolc-blue);
}

::-webkit-scrollbar-thumb:active {
	background-color: var(--rolc-blue-hover);
}

::-webkit-scrollbar-corner {
	background: transparent;
}

/* ----------------------------------------------------------- to top */

.rolc-to-top {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 55; /* under the navbar (60) */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.56);
	border-radius: 9999px;
	background:
		radial-gradient(38.57% 51.34% at 85% 0%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%),
		var(--rolc-blue);
	box-shadow: 0 8px 24px 0 rgba(9, 61, 175, 0.25);
	color: #ffffff;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.rolc-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.rolc-to-top:hover {
	background:
		radial-gradient(38.57% 51.34% at 85% 0%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 100%),
		var(--rolc-blue-hover);
}

.rolc-to-top:focus-visible {
	outline: 2px solid var(--rolc-blue);
	outline-offset: 3px;
}

@media (max-width: 800px) {
	.rolc-to-top {
		right: 16px;
		bottom: 16px;
		width: 44px;
		height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rolc-to-top {
		transition: none;
	}
}

/* ------------------------------------------- laptop (1024px – 1439px) */

/* The main site drops to its phone layout below its 1440px canvas, but the
   news pages keep a two-column desktop layout down to 801px, so the chrome
   stays desktop too and flexes instead: auto-width menu slots, and a footer
   whose blue plate and link rail are laid out in percentages. */
@media (min-width: 1024px) and (max-width: 1439px) {
	.site-navbar .navbar-menu .menu-item {
		width: auto;
		padding: 8px 14px;
	}

	.site-footer .footer-inner {
		width: 100%;
	}

	.site-footer .footer-brand {
		width: max(38%, 440px);
	}

	.site-footer .brand-logos,
	.site-footer .brand-publisher,
	.site-footer .brand-copyright {
		left: 48px;
	}

	.site-footer .footer-nav,
	.site-footer .footer-rule,
	.site-footer .footer-legal {
		left: calc(max(38%, 440px) + 48px);
	}

	.site-footer .footer-rule {
		width: calc(100% - max(38%, 440px) - 96px);
	}

	/* socials sit just left of the language switch (67px wide + 24px) */
	.site-footer .footer-socials {
		right: calc(48px + 67px + 24px);
		left: auto;
	}

	.site-footer .footer-lang {
		right: 48px;
		left: auto;
	}
}

/* Not enough room for the Download pill beside the menu, nor for the footer's
   20px link rail beside the plate. */
@media (min-width: 1024px) and (max-width: 1199px) {
	.site-navbar .navbar-cta {
		display: none;
	}

	.site-footer .footer-nav,
	.site-footer .footer-nav .nav-entry {
		gap: 10px;
	}

	.site-footer .footer-nav a {
		font-size: 16px;
	}
}

/* ------------------------------------------------ tablet/phone (< 1024px) */

@media (max-width: 1023px) {
	/* the bar becomes a gutted pill (390px comp), as wide as the content */
	.site-navbar {
		width: auto;
		margin: 0 auto;
		padding: 12px 16px 0;
	}

	.site-navbar .navbar-menu,
	.site-navbar .navbar-cta {
		display: none;
	}

	.site-navbar .navbar-mobile {
		display: block;
	}

	/* footer collapses to one dark, centred plate (Figma 25153:2457) */
	.site-footer {
		height: auto;
		background: var(--rolc-blue);
	}

	.site-footer .footer-inner {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 24px;
		width: auto;
		max-width: 520px;
		height: auto;
		padding: 32px 16px;
		text-align: center;
	}

	.site-footer .footer-brand {
		position: static;
		display: contents;
	}

	.site-footer .footer-brand::before {
		content: none;
	}

	.site-footer .brand-logos {
		position: static;
		justify-content: center;
	}

	.site-footer .brand-publisher,
	.site-footer .brand-copyright {
		position: static;
		transform: none;
		white-space: normal;
	}

	.site-footer .footer-nav,
	.site-footer .footer-rule {
		display: none;
	}

	.site-footer .footer-legal {
		position: static;
		justify-content: center;
		color: var(--rolc-footer-text);
	}

	.site-footer .footer-legal a:hover {
		color: #ffffff;
	}

	.site-footer .footer-socials {
		position: static;
		justify-content: center;
	}

	.site-footer .footer-lang {
		position: relative;
		top: auto;
		left: auto;
	}
}

@media (max-width: 389px) {
	.site-navbar .navbar-pill {
		padding: 8px 12px;
	}

	.site-navbar .navbar-right {
		gap: 8px;
	}

	.site-navbar .navbar-login {
		padding: 8px 12px;
	}

	.site-navbar .navbar-lang {
		padding: 8px 4px 8px 8px;
	}

	.site-navbar .navbar-divider {
		display: none;
	}
}

/* Phones: the Thai labels are longer ("เข้าสู่ระบบ" vs "Login") and stay whole,
   so the bar slims down around them — smaller logo, 14px login, 36px menu
   button — keeping the menu button inside the pill. */
@media (max-width: 479px) {
	.site-navbar .navbar-left {
		gap: 8px;
	}

	.site-navbar .navbar-logo img {
		width: 70px;
		height: 39px;
	}

	.site-navbar .navbar-right {
		gap: 8px;
	}

	.site-navbar .navbar-login {
		gap: 6px;
		padding: 8px 12px;
	}

	.site-navbar .navbar-login span:not(.login-icon) {
		font-size: 14px;
	}

	.site-navbar .navbar-login .login-icon img {
		width: 16px;
		height: 16px;
	}

	.site-navbar .navbar-chip {
		width: auto;
		gap: 6px;
	}

	.site-navbar .navbar-chip .chip-label {
		gap: 6px;
	}

	.site-navbar .navbar-chip span {
		font-size: 14px;
	}

	.site-navbar .navbar-chip .chip-icon img {
		width: 16px;
		height: 16px;
	}

	.site-navbar .navbar-lang {
		padding: 8px 4px 8px 8px;
	}

	.site-navbar .navbar-lang span {
		font-size: 14px;
	}

	.site-navbar .navbar-lang .lang-label {
		min-width: 20px;
	}

	.site-navbar .navbar-burger {
		width: 36px;
		height: 36px;
	}
}

/* The narrowest phones (320–359px): drop the login glyph, keep the word. */
@media (max-width: 359px) {
	.site-navbar .navbar-logo img {
		width: 57px;
		height: 32px;
	}

	.site-navbar .navbar-login .login-icon,
	.site-navbar .navbar-chip .chip-icon {
		display: none;
	}

	/* the account chip runs a little wider than Login: tighter caret */
	.site-navbar .navbar-chip {
		gap: 2px;
	}

	.site-navbar .navbar-chip .chip-caret img {
		width: 14px;
		height: 14px;
	}
}
