body.l7a-surface-system,
body.l7a-surface-legal {
  --l7p-bg: #f4f6f8;
  --l7p-surface: #fff;
  --l7p-text: #1b2028;
  --l7p-muted: #596474;
  --l7p-line: #dde3ea;
  --l7p-accent: #2981d2;
  --l7p-accent-contrast: #fff;
  color: var(--l7p-text);
  background: var(--l7p-bg);
}

html[data-l7a-theme='dark'] body:is(.l7a-surface-system, .l7a-surface-legal) {
  --l7p-bg: #0e1116;
  --l7p-surface: #171b22;
  --l7p-text: #f5f7fa;
  --l7p-muted: #a5afbd;
  --l7p-line: #2c3440;
  --l7p-accent: #66c7f1;
  --l7p-accent-contrast: #101820;
}

html[data-l7a-theme='light'] body:is(.l7a-surface-system, .l7a-surface-legal) {
  --l7a-shell-color: #1b2028;
  --l7a-shell-muted: #596474;
  --l7a-shell-rgb: 249 252 253;
  --l7a-shell-line: rgba(27, 32, 40, 0.12);
  --l7a-shell-surface: rgb(var(--l7a-shell-rgb) / 0.82);
  --l7a-shell-surface-strong: rgb(var(--l7a-shell-rgb) / 0.94);
  --l7a-shell-menu-surface: rgb(var(--l7a-shell-rgb) / 0.97);
}

html[data-l7a-theme='light'] body:is(.l7a-surface-system, .l7a-surface-legal)
  .l7a-site-brand__logo {
  content: url('/wp-content/uploads/2018/08/7l-logo-b.png');
  filter: none;
  opacity: 1;
}

html[data-l7a-theme='light'] body:is(.l7a-surface-system, .l7a-surface-legal)
  :is(.l7a-site-theme-toggle, .xl-site-theme-toggle, .l7a-site-menu-button) {
  border-color: rgba(24, 48, 60, 0.16);
  background: rgba(24, 48, 60, 0.055);
  color: #18303c;
}

body:is(.l7a-surface-system, .l7a-surface-legal) .l-main {
  min-height: 72vh;
  padding-top: var(--l7a-shell-height);
  color: var(--l7p-text);
  background: var(--l7p-bg);
}

body:is(.l7a-surface-system, .l7a-surface-legal)
  .l-main > .l-section {
  padding-block: 0 !important;
}

body:is(.l7a-surface-system, .l7a-surface-legal) .l-titlebar {
  color: var(--l7p-text);
  background: var(--l7p-bg);
  border-bottom: 1px solid var(--l7p-line);
}

body:is(.l7a-surface-system, .l7a-surface-legal) .l-titlebar-h {
  box-sizing: border-box;
  width: min(1120px, calc(100% - 2.5rem));
  max-width: none;
  margin-inline: auto;
  padding-block: clamp(1.1rem, 1.8vw, 1.75rem) !important;
}

body:is(.l7a-surface-system, .l7a-surface-legal)
  .l-main > .l-section:first-child > .l-section-h {
  min-height: 0 !important;
  padding-block: clamp(1.1rem, 1.8vw, 1.75rem) !important;
}

body:is(.l7a-surface-system, .l7a-surface-legal) .l-titlebar h1 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

body:is(.l7a-surface-system, .l7a-surface-legal)
  .l-main > .l-section > .l-section-h {
  box-sizing: border-box;
  width: min(1120px, calc(100% - 2.5rem));
  max-width: none;
  margin-inline: auto;
  padding-block: clamp(1.35rem, 2.5vw, 2.25rem);
}

body.l7a-surface-legal .l-main > .l-section > .l-section-h {
  width: min(880px, calc(100% - 2.5rem));
}

body:is(.l7a-surface-system, .l7a-surface-legal)
  :is(.l-titlebar, .l-main) :is(h1, h2, h3, h4, h5, h6) {
  color: var(--l7p-text);
}

body:is(.l7a-surface-system, .l7a-surface-legal)
  .l-main :is(p, li, td, th, label) {
  color: inherit;
}

body:is(.l7a-surface-system, .l7a-surface-legal)
  .l-main :is(p, li) {
  line-height: 1.68;
}

body.l7a-surface-legal .l-main :is(.wpb_text_column, .wpb_text_column p, li) {
  font-size: clamp(1rem, 0.96rem + 0.16vw, 1.08rem);
}

body.l7a-surface-legal .l-main :is(h2, h3) {
  margin-top: 1.8em;
  margin-bottom: 0.65em;
  line-height: 1.2;
  letter-spacing: -0.018em;
}

body:is(.l7a-surface-system, .l7a-surface-legal)
  .l-main a:not(.l7a-site-brand, .l7a-site-nav__link, .w-btn) {
  color: var(--l7p-accent);
  text-underline-offset: 0.16em;
}

html[data-l7a-theme='dark'] body:is(.l7a-surface-system, .l7a-surface-legal)
  .l-main :is(.l-section, .l-section-h, .wpb_text_column, .w-tabs-section-content) {
  color: var(--l7p-text);
}

html[data-l7a-theme='dark'] body:is(.l7a-surface-system, .l7a-surface-legal)
  .l-main > .l-section:not(.with_img) {
  background-color: var(--l7p-bg) !important;
}

html[data-l7a-theme='dark'] body:is(.l7a-surface-system, .l7a-surface-legal)
  .l-main > .l-section.color_alternate:not(.with_img) {
  background-color: var(--l7p-surface) !important;
}

html[data-l7a-theme='dark'] body:is(.l7a-surface-system, .l7a-surface-legal)
  .l-main :is(h1, h2, h3, h4, h5, h6) {
  color: var(--l7p-text) !important;
}

body:is(.l7a-surface-system, .l7a-surface-legal)
  .l-main :is(input:not([type='checkbox'], [type='radio'], [type='submit']), textarea, select) {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.8rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--l7p-line);
  border-radius: 8px;
  background: var(--l7p-surface);
  color: var(--l7p-text);
  box-shadow: none;
}

body:is(.l7a-surface-system, .l7a-surface-legal) .l-main textarea {
  min-height: 8rem;
  resize: vertical;
}

body:is(.l7a-surface-system, .l7a-surface-legal)
  .l-main :is(input, textarea, select, button, a):focus-visible {
  outline: 2px solid var(--l7p-accent);
  outline-offset: 3px;
}

body:is(.l7a-surface-system, .l7a-surface-legal)
  .l-main :is(input[type='submit'], button:not(.l7a-site-theme-toggle, .l7a-site-menu-button)) {
  min-height: 2.8rem;
  padding: 0.62rem 1rem;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--l7p-accent);
  color: var(--l7p-accent-contrast);
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 160ms var(--l7a-ease-out),
    border-color 160ms var(--l7a-ease-out),
    transform 140ms var(--l7a-ease-out);
}

body:is(.l7a-surface-system, .l7a-surface-legal)
  .l-main :is(table, blockquote, .w-tabs-section, .w-message) {
  border-color: var(--l7p-line);
}

html[data-l7a-theme='dark'] body:is(.l7a-surface-system, .l7a-surface-legal)
  .l-main :is(table, blockquote, .w-tabs-section, .w-message, .w-tabs-section-header) {
  background-color: var(--l7p-surface);
  color: var(--l7p-text);
}

body.l7a-page-kind-support .l-main .w-tabs.layout_accordion {
  overflow: hidden;
  border: 1px solid var(--l7p-line);
  border-radius: 14px;
  background: var(--l7p-surface);
}

body.l7a-page-kind-support .l-main .w-tabs-section {
  margin: 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--l7p-line) !important;
  background: transparent !important;
}

body.l7a-page-kind-support .l-main .w-tabs-section:first-child {
  border-top: 0 !important;
}

body.l7a-page-kind-support .l-main .w-tabs-section-header {
  min-height: 3.5rem;
  padding: 0.9rem 1.1rem !important;
  background: transparent !important;
  color: var(--l7p-text) !important;
  font-weight: 650;
  transition: background-color 160ms var(--l7a-ease-out);
}

body.l7a-page-kind-support .l-main .w-tabs-section.active .w-tabs-section-header {
  background: color-mix(in srgb, var(--l7p-accent) 8%, transparent) !important;
}

body.l7a-page-kind-support .l-main .w-tabs-section-content-h {
  padding: 0 1.1rem 1.2rem;
  color: var(--l7p-muted);
}

body:is(.l7a-page-kind-feedback, .l7a-page-kind-cooperation, .l7a-page-kind-suggest_game)
  .l-main :is(.w-form, .wpcf7) {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--l7p-line);
  border-radius: 14px;
  background: var(--l7p-surface);
}

html[data-l7a-theme='dark']
  body:is(.l7a-page-kind-feedback, .l7a-page-kind-cooperation, .l7a-page-kind-suggest_game)
  .l-main :is(.wpcf7-acceptance, .wpcf7-list-item-label, .wpcf7-acceptance label) {
  color: var(--l7p-muted) !important;
}

body.l7a-page-kind-news .l-main .g-filters.style_3 {
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

body.l7a-page-kind-news .l-main .g-filters.style_3 .g-filters-item {
  display: inline-flex;
  min-height: 2.6rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--l7p-line);
  border-radius: 9px;
  background: var(--l7p-surface);
  color: var(--l7p-muted);
  line-height: 1.25;
}

body.l7a-page-kind-news .l-main .g-filters.style_3 .g-filters-item.active {
  border-color: var(--l7p-accent);
  background: var(--l7p-accent);
  color: var(--l7p-accent-contrast);
}

body.l7a-page-kind-news .l-main .g-filters.style_3 .g-filters-item::after {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body.l7a-page-kind-support .l-main .w-tabs-section-header:hover {
    background: color-mix(in srgb, var(--l7p-accent) 6%, transparent) !important;
  }

  body:is(.l7a-surface-system, .l7a-surface-legal)
    .l-main :is(input[type='submit'], button:not(.l7a-site-theme-toggle, .l7a-site-menu-button)):active {
    transform: scale(0.97);
  }

  body.l7a-page-kind-news .l-main .g-filters.style_3 .g-filters-item:not(.active):hover {
    border-color: color-mix(in srgb, var(--l7p-accent) 42%, var(--l7p-line));
    color: var(--l7p-text);
  }
}

@media (max-width: 600px) {
  body:is(.l7a-surface-system, .l7a-surface-legal) .l-titlebar-h,
  body:is(.l7a-surface-system, .l7a-surface-legal)
    .l-main > .l-section:first-child > .l-section-h {
    padding-block: 1rem !important;
  }

  body:is(.l7a-surface-system, .l7a-surface-legal) .l-titlebar-h,
  body:is(.l7a-surface-system, .l7a-surface-legal)
    .l-main > .l-section > .l-section-h,
  body.l7a-surface-legal .l-main > .l-section > .l-section-h {
    width: min(100% - 1.5rem, 1120px);
  }

  body:is(.l7a-surface-system, .l7a-surface-legal) .l-main table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  body.l7a-page-kind-news .l-main .g-filters.style_3 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.l7a-page-kind-news .l-main .g-filters.style_3 .g-filters-item {
    width: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:is(.l7a-surface-system, .l7a-surface-legal) *,
  body:is(.l7a-surface-system, .l7a-surface-legal) *::before,
  body:is(.l7a-surface-system, .l7a-surface-legal) *::after {
    scroll-behavior: auto !important;
  }
}
