/*
Theme Name: RT Protocol Core
Theme URI: https://killteam.czasgier.pl/
Author: RT Protocol
Description: Ciemny, responsywny motyw WordPress oparty na systemie wizualnym RT Protocol. Obsługuje blog, strony, archiwa, menu, komentarze i edytor blokowy, bez logiki aplikacji Kill Team.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: rt-protocol-core
*/

:root {
  --rt-bg: #080b0e;
  --rt-bg-2: #0d1115;
  --rt-panel: #11171c;
  --rt-panel-2: #151d23;
  --rt-panel-3: #1a242c;
  --rt-line: #2b3740;
  --rt-line-soft: #202a31;
  --rt-text: #f4f7f9;
  --rt-muted: #94a3ad;
  --rt-accent: #3a81bd;
  --rt-accent-light: #69a8dc;
  --rt-red: #b74046;
  --rt-green: #56b879;
  --rt-yellow: #d6a956;
  --rt-radius: 18px;
  --rt-radius-sm: 12px;
  --rt-shadow: 0 18px 55px rgba(0, 0, 0, .32);
  --rt-container: 1240px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--rt-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--rt-text);
  background:
    radial-gradient(circle at 84% -10%, rgba(58, 129, 189, .17), transparent 35%),
    radial-gradient(circle at 0 35%, rgba(58, 129, 189, .07), transparent 24%),
    linear-gradient(180deg, #0b0f12 0%, #070a0d 100%);
  font-family: inherit;
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: var(--rt-accent-light);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #a7d4f3;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  cursor: pointer;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--rt-text);
  line-height: 1.15;
  letter-spacing: -.025em;
}

p {
  margin-top: 0;
}

hr {
  border: 0;
  border-top: 1px solid var(--rt-line);
  margin: 2rem 0;
}

blockquote {
  margin: 1.7rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--rt-accent);
  border-radius: 0 var(--rt-radius-sm) var(--rt-radius-sm) 0;
  background: rgba(58, 129, 189, .08);
  color: #d7e1e7;
}

blockquote p:last-child {
  margin-bottom: 0;
}

pre,
code,
kbd,
samp {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

code,
kbd {
  padding: .15em .38em;
  border: 1px solid var(--rt-line);
  border-radius: 6px;
  background: #080c0f;
}

pre {
  max-width: 100%;
  overflow: auto;
  padding: 1.1rem;
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius-sm);
  background: #080c0f;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

th,
td {
  padding: .8rem .9rem;
  border: 1px solid var(--rt-line);
  text-align: left;
}

th {
  background: var(--rt-panel-2);
  color: #fff;
}

.site {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-container {
  width: min(var(--rt-container), calc(100% - 44px));
  margin-inline: auto;
}

.narrow-container {
  width: min(900px, calc(100% - 44px));
}

.site-main {
  flex: 1;
  padding-top: 38px;
  padding-bottom: 70px;
}

/* Full-width layout used only by the RT Protocol game shortcode. */
body.rtp-game-page {
  --rtp-wordpress-header-offset: 82px;
  --rtp-game-toolbar-height: 82px;
}

.rtp-game-main,
.rtp-game-entry,
.rtp-game-content {
  width: 100%;
  max-width: none;
}

.rtp-game-main {
  margin: 0;
  padding: 0;
}

.rtp-game-entry {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.rtp-game-content {
  padding: 0;
}

body.rtp-game-page #rtp-app .topbar {
  top: var(--rtp-wordpress-header-offset);
}

body.rtp-game-page #rtp-app .stepper {
  top: calc(var(--rtp-wordpress-header-offset) + var(--rtp-game-toolbar-height));
}

body.admin-bar.rtp-game-page {
  --rtp-wordpress-header-offset: 114px;
}

.rt-panel {
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius);
  background: linear-gradient(180deg, rgba(20, 28, 34, .98), rgba(13, 18, 22, .98));
  box-shadow: var(--rt-shadow);
}

.eyebrow {
  display: block;
  color: var(--rt-accent-light);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus,
.skip-link:focus {
  top: 10px;
  left: 10px;
  z-index: 99999;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  border-radius: 9px;
  background: #fff;
  color: #0b1115;
  font-weight: 800;
}

/* Header and navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 82px;
  border-bottom: 1px solid var(--rt-line-soft);
  background: rgba(8, 11, 14, .88);
  backdrop-filter: blur(18px);
}

.admin-bar .site-header {
  top: 32px;
}

.site-header-inner {
  width: min(var(--rt-container), calc(100% - 44px));
  min-height: 82px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-branding {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-logo-link,
.default-logo-link {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  padding: 4px;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.custom-logo,
.default-logo-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--rt-text);
  text-decoration: none;
}

.site-brand-copy:hover {
  color: #fff;
}

.site-brand-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .15em;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.site-brand-copy span {
  overflow: hidden;
  color: var(--rt-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .14em;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: uppercase;
}

.main-navigation {
  margin-left: auto;
}

.main-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation > div > ul,
.main-navigation > ul {
  display: flex;
  align-items: center;
  gap: 5px;
}

.main-navigation li {
  position: relative;
}

.main-navigation a {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 11px;
  display: flex;
  align-items: center;
  color: #aebac2;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .075em;
  text-decoration: none;
  text-transform: uppercase;
  transition: .16s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  border-color: rgba(58, 129, 189, .55);
  background: rgba(58, 129, 189, .11);
  color: #fff;
}

.main-navigation .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 7px;
  border: 1px solid var(--rt-line);
  border-radius: 13px;
  display: none;
  background: rgba(12, 17, 21, .98);
  box-shadow: var(--rt-shadow);
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
  display: block;
}

.main-navigation .sub-menu a {
  min-height: 38px;
}

.menu-toggle {
  display: none;
  width: 43px;
  height: 43px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--rt-line);
  border-radius: 12px;
  background: var(--rt-panel);
}

.menu-toggle i {
  width: 100%;
  height: 2px;
  margin: 4px 0;
  display: block;
  border-radius: 99px;
  background: #dce5ea;
  transition: .18s ease;
}

.menu-toggle[aria-expanded="true"] i:nth-of-type(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] i:nth-of-type(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] i:nth-of-type(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Blog home */
.blog-hero {
  min-height: 245px;
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  align-items: center;
  gap: 28px;
  border-color: rgba(58, 129, 189, .45);
}

.blog-hero::after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  top: -235px;
  right: -120px;
  border: 1px solid rgba(58, 129, 189, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(58, 129, 189, .018), 0 0 0 80px rgba(58, 129, 189, .012);
}

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

.blog-hero h1 {
  max-width: 800px;
  margin: 8px 0 10px;
  font-size: clamp(38px, 6vw, 70px);
  letter-spacing: -.055em;
}

.blog-hero p {
  max-width: 690px;
  margin: 0;
  color: var(--rt-muted);
  font-size: clamp(14px, 2vw, 18px);
}

.hero-mark {
  justify-self: end;
  width: 220px;
  height: 180px;
  display: grid;
  place-items: center;
  opacity: .9;
}

.hero-mark img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, .5));
}

.section-heading {
  padding: 38px 3px 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(30px, 4vw, 48px);
}

.content-with-sidebar {
  display: block;
}

.content-with-sidebar.has-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 20px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.post-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, border-color .18s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(58, 129, 189, .62);
}

.post-card-thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  border-bottom: 1px solid var(--rt-line);
  background: #090d10;
}

.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.post-card:hover .post-card-thumbnail img {
  transform: scale(1.025);
}

.post-card-body {
  flex: 1;
  padding: 22px 23px 23px;
  display: flex;
  flex-direction: column;
}

.post-card-meta,
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  color: #71828c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.post-card-meta a,
.entry-meta a {
  color: var(--rt-accent-light);
  text-decoration: none;
}

.post-card-title {
  margin: 10px 0 9px;
  font-size: clamp(21px, 2.4vw, 29px);
}

.post-card-title a {
  color: var(--rt-text);
  text-decoration: none;
}

.post-card-title a:hover {
  color: #fff;
}

.post-card-excerpt {
  color: var(--rt-muted);
  font-size: 14px;
}

.post-card-excerpt p {
  margin-bottom: 16px;
}

.read-more {
  margin-top: auto;
  align-self: flex-start;
  color: #d9e5ec;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.read-more span {
  color: var(--rt-accent-light);
}

.blog-sidebar {
  display: grid;
  gap: 14px;
}

.widget {
  padding: 20px;
}

.widget-title {
  margin: 0 0 13px;
  font-size: 18px;
}

.widget ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rt-line-soft);
}

.widget li:last-child {
  border-bottom: 0;
}

.widget a {
  color: #c1cdd4;
  text-decoration: none;
}

.widget a:hover {
  color: #fff;
}

/* Archives, search and empty states */
.archive-header,
.no-results,
.error-404 {
  padding: 28px 30px;
  margin-bottom: 22px;
}

.archive-header h1,
.no-results h1,
.error-404 h1 {
  margin: 6px 0 8px;
  font-size: clamp(31px, 5vw, 54px);
}

.archive-description,
.no-results p,
.error-404 p {
  max-width: 760px;
  color: var(--rt-muted);
}

.archive-description p:last-child {
  margin-bottom: 0;
}

.archive-header .search-form {
  margin-top: 18px;
}

.error-404 {
  padding: clamp(30px, 7vw, 70px);
  text-align: center;
}

.error-code {
  display: block;
  color: rgba(58, 129, 189, .28);
  font-size: clamp(90px, 20vw, 190px);
  font-weight: 1000;
  line-height: .8;
  letter-spacing: -.08em;
}

.error-404 .eyebrow {
  margin-top: 25px;
}

.error-404 p {
  margin-inline: auto;
}

.error-actions {
  max-width: 650px;
  margin: 22px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Single posts and pages */
.entry-single {
  overflow: hidden;
}

.entry-header {
  padding: clamp(25px, 5vw, 48px) clamp(22px, 6vw, 58px) 26px;
}

.entry-header h1 {
  margin: 8px 0 14px;
  font-size: clamp(36px, 7vw, 66px);
  letter-spacing: -.055em;
}

.page-entry .entry-header {
  padding-bottom: 12px;
}

.entry-featured {
  margin: 0 clamp(18px, 4vw, 40px);
  overflow: hidden;
  border: 1px solid var(--rt-line);
  border-radius: 15px;
  background: #090d10;
}

.entry-featured img {
  width: 100%;
}

.entry-content {
  padding: 32px clamp(22px, 6vw, 58px) 44px;
  color: #c8d2d8;
}

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

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

.entry-content h2 {
  margin-top: 2.1rem;
  font-size: clamp(27px, 4vw, 37px);
}

.entry-content h3 {
  margin-top: 1.8rem;
  font-size: clamp(22px, 3vw, 29px);
}

.entry-content a {
  overflow-wrap: anywhere;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.35rem;
}

.entry-content li + li {
  margin-top: .4rem;
}

.entry-content figure {
  margin-top: 1.7rem;
  margin-bottom: 1.7rem;
}

.entry-content figcaption,
.wp-caption-text {
  margin-top: .55rem;
  color: #71828c;
  font-size: 12px;
  text-align: center;
}

.entry-footer {
  padding: 16px clamp(22px, 6vw, 58px) 22px;
  border-top: 1px solid var(--rt-line-soft);
  color: var(--rt-muted);
  font-size: 12px;
}

.entry-footer span {
  color: #d8e1e6;
  font-weight: 800;
}

.post-navigation {
  margin: 18px 0;
}

.post-navigation .nav-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.post-navigation a {
  min-height: 90px;
  padding: 17px;
  border: 1px solid var(--rt-line);
  border-radius: var(--rt-radius-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--rt-panel);
  color: var(--rt-text);
  text-decoration: none;
}

.post-navigation .nav-next a {
  text-align: right;
}

.post-navigation a:hover {
  border-color: var(--rt-accent);
}

.post-navigation span {
  color: var(--rt-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.post-navigation strong {
  margin-top: 4px;
}

/* Forms and buttons */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--rt-line);
  border-radius: 11px;
  background: #090e12;
  color: #fff;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #667680;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.rt-button,
.wp-element-button,
.wp-block-button__link {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rt-accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--rt-accent) 88%, white), var(--rt-accent));
  color: #fff;
  font-weight: 900;
  letter-spacing: .04em;
  text-decoration: none;
  transition: transform .16s ease, filter .16s ease;
}

button:hover,
input[type="submit"]:hover,
.rt-button:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
  color: #fff;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-form label {
  flex: 1;
}

.search-submit {
  flex: 0 0 auto;
}

/* Pagination */
.navigation.pagination {
  margin-top: 25px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.page-numbers {
  min-width: 42px;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid var(--rt-line);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--rt-panel);
  color: #c8d4da;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
  border-color: var(--rt-accent);
  background: rgba(58, 129, 189, .14);
  color: #fff;
}

/* Comments */
.comments-area {
  margin-top: 18px;
  padding: clamp(22px, 5vw, 42px);
}

.comments-title,
.comment-reply-title {
  margin: 0 0 20px;
  font-size: 25px;
}

.comment-list {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.comment-list .children {
  margin-left: 34px;
  list-style: none;
}

.comment-body {
  margin-bottom: 12px;
  padding: 17px;
  border: 1px solid var(--rt-line-soft);
  border-radius: var(--rt-radius-sm);
  background: rgba(7, 11, 14, .55);
}

.comment-meta {
  margin-bottom: 10px;
  font-size: 11px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 9px;
}

.comment-author .avatar {
  border-radius: 10px;
}

.comment-metadata a,
.comment-reply-link {
  color: var(--rt-muted);
  text-decoration: none;
}

.comment-form label {
  display: block;
  margin-bottom: 5px;
  color: #bdc9d0;
  font-size: 11px;
  font-weight: 800;
}

/* Block editor output */
.alignwide {
  width: min(1080px, calc(100vw - 44px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.alignfull {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.wp-block-image img,
.wp-block-cover,
.wp-block-gallery {
  border-radius: var(--rt-radius-sm);
}

.wp-block-group.has-background,
.wp-block-columns.has-background {
  padding: 1.5rem;
  border-radius: var(--rt-radius-sm);
}

.wp-block-separator {
  border-color: var(--rt-line);
}

.wp-block-quote cite {
  color: var(--rt-muted);
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--rt-line-soft);
  background: rgba(6, 9, 11, .72);
}

.footer-widgets {
  padding: 26px 0 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.footer-widget {
  padding: 0;
}

.site-footer-inner {
  min-height: 102px;
  padding: 19px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  opacity: .82;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  color: #c5d0d6;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-brand span {
  color: #62737d;
  font-size: 10px;
}

.footer-navigation ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 16px;
  list-style: none;
}

.footer-navigation a {
  color: #83939c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
}

.footer-navigation a:hover {
  color: #fff;
}

@media (max-width: 1100px) {
  .content-with-sidebar.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  .content-with-sidebar.has-sidebar .posts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body.rtp-game-page {
    --rtp-wordpress-header-offset: 72px;
  }

  body.admin-bar.rtp-game-page {
    --rtp-wordpress-header-offset: 104px;
  }

  .site-header,
  .site-header-inner {
    min-height: 72px;
  }

  .custom-logo-link,
  .default-logo-link {
    flex-basis: 50px;
    width: 50px;
    height: 50px;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    position: fixed;
    top: 72px;
    right: 12px;
    left: 12px;
    max-height: calc(100vh - 90px);
    padding: 10px;
    overflow: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    border: 1px solid var(--rt-line);
    border-radius: 15px;
    background: rgba(8, 12, 15, .98);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
    transition: .18s ease;
  }

  .admin-bar .main-navigation {
    top: 104px;
  }

  .main-navigation.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .main-navigation > div > ul,
  .main-navigation > ul {
    display: block;
  }

  .main-navigation a {
    width: 100%;
    min-height: 48px;
  }

  .main-navigation .sub-menu {
    position: static;
    min-width: 0;
    margin-left: 13px;
    padding: 0 0 0 8px;
    border: 0;
    border-left: 1px solid var(--rt-line);
    border-radius: 0;
    display: block;
    background: transparent;
    box-shadow: none;
  }

  .blog-hero {
    grid-template-columns: 1fr 170px;
    padding: 30px;
  }

  .hero-mark {
    width: 150px;
  }

  .hero-mark img {
    width: 140px;
    height: 140px;
  }

  .content-with-sidebar.has-sidebar {
    grid-template-columns: 1fr;
  }

  .content-with-sidebar.has-sidebar .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
  }
}

@media (max-width: 782px) {
  body.admin-bar.rtp-game-page {
    --rtp-wordpress-header-offset: 118px;
  }

  .admin-bar .site-header {
    top: 46px;
  }

  .admin-bar .main-navigation {
    top: 118px;
  }
}

@media (max-width: 680px) {
  body.rtp-game-page {
    --rtp-game-toolbar-height: 68px;
  }

  .site-container,
  .narrow-container,
  .site-header-inner {
    width: min(100% - 22px, var(--rt-container));
  }

  .site-main {
    padding-top: 20px;
    padding-bottom: 42px;
  }

  body.rtp-game-page .rtp-game-main {
    padding: 0;
  }

  .site-brand-copy strong {
    font-size: 12px;
  }

  .site-brand-copy span {
    max-width: 180px;
    font-size: 8px;
  }

  .blog-hero {
    min-height: 0;
    padding: 25px 21px;
    grid-template-columns: 1fr;
  }

  .blog-hero h1 {
    font-size: clamp(35px, 12vw, 51px);
  }

  .hero-mark {
    display: none;
  }

  .section-heading {
    padding: 28px 2px 13px;
  }

  .posts-grid,
  .content-with-sidebar.has-sidebar .posts-grid,
  .blog-sidebar,
  .footer-widgets {
    grid-template-columns: 1fr;
  }

  .post-card-body {
    padding: 18px;
  }

  .archive-header,
  .no-results,
  .error-404 {
    padding: 22px;
  }

  .entry-header {
    padding: 24px 19px 18px;
  }

  .entry-header h1 {
    font-size: clamp(34px, 12vw, 49px);
  }

  .entry-featured {
    margin: 0 12px;
  }

  .entry-content {
    padding: 24px 19px 32px;
  }

  .post-navigation .nav-links {
    grid-template-columns: 1fr;
  }

  .post-navigation .nav-next a {
    text-align: left;
  }

  .comments-area {
    padding: 19px;
  }

  .comment-list .children {
    margin-left: 12px;
    padding-left: 0;
  }

  .error-actions,
  .search-form {
    align-items: stretch;
    flex-direction: column;
  }

  .search-submit,
  .rt-button {
    width: 100%;
  }

  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-navigation ul {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .site-brand-copy span {
    display: none;
  }

  .site-brand-copy strong {
    max-width: 185px;
  }
}
