
:root {
  --edem-theme-primary: #005ca7;
  --edem-theme-primary-dark: #003d73;
  --edem-theme-secondary: #ce2a29;
  --edem-theme-accent: #ffffff;
  --edem-theme-link: #7eb232;
  --edem-theme-audiencias: #f2c526;
  --edem-theme-surface: #ffffff;
  --edem-theme-surface-alt: #f2f7fc;
  --edem-theme-text: #24465f;
  --edem-theme-on-primary: #ffffff;
  --edem-theme-on-secondary: #ffffff;
  --edem-theme-soft-highlight: color-mix(in srgb, var(--edem-theme-link) 82%, white);
}

html {
  background-color: var(--edem-theme-primary-dark) !important;
  color: var(--edem-theme-on-primary) !important;
}

.edem-topbar > .stick,
.footer {
  background: linear-gradient(90deg, var(--edem-theme-primary) 0%, var(--edem-theme-primary-dark) 100%) !important;
  color: var(--edem-theme-on-primary) !important;
}

.edem-topbar > .stick > .brand > .name,
.edem-topbar > .stick > .actions > .menu > .link,
.edem-sidebar > .stick > .content > .username,
.edem-sidebar > .stick > .content > .header,
.edem-sidebar > .stick > .content > .info {
  color: var(--edem-theme-on-primary) !important;
}

.edem-topbar > .stick > .actions > .menu > .link.-highlight,
.edem-sidebar > .stick > .content > .info > .link,
.edem-sidebar > .stick > .content > .success > .highlight,
.edem-sidebar > .stick > .content > .link,
.footer > .briefing > .text > .owner,
.footer > .tos > .link,
.login-box__option.active,
.login-box__link--forgotten-password,
.edem-access a:not(.button),
.edem-access .login-box__title,
.owner-section > .secondhalf > .briefing > .owner {
  color: var(--edem-theme-link) !important;
}

.edem-topbar > .stick > .actions > .menu > .link.-highlight::after,
.edem-topbar > .stick > .actions > .menu > .link.-highlight::before,
.login-box__yellow-bar {
  background-color: var(--edem-theme-accent) !important;
}

.edem-topbar > .stick > .actions > .menu > .link.-active {
  color: var(--edem-theme-text) !important;
}

.edem-topbar > .stick > .actions > .menu > .link.-active::after {
  background-color: var(--edem-theme-surface) !important;
}

.edem-topbar > .stick > .actions > .menu > .link.-highlight.-active {
  color: var(--edem-theme-text) !important;
}

.edem-topbar > .stick > .actions > .menu > .link.-highlight.-active::after {
  background-color: var(--edem-theme-surface) !important;
}

.login-box__options,
.edem-sidebar > .stick > .content > .header {
  border-color: var(--edem-theme-accent) !important;
}

.edem-access .login-box__title,
.edem-access a:not(.button) {
  background-image: linear-gradient(var(--edem-theme-accent), var(--edem-theme-accent)) !important;
}

.edem-sidebar > .stick,
.login-box {
  background-color: var(--edem-theme-primary) !important;
  color: var(--edem-theme-on-primary) !important;
}

.edem-access {
  background: linear-gradient(var(--edem-theme-primary), var(--edem-theme-primary-dark)) !important;
  color: var(--edem-theme-on-primary) !important;
}

.edem-access .login-box__choice-text {
  color: var(--edem-theme-accent) !important;
}

.section--user-profile {
  background-color: var(--edem-theme-primary) !important;
  color: var(--edem-theme-on-primary) !important;
}

.section--user-profile .section__title,
.section--user-profile .section__caption,
.section--user-profile .section__note {
  color: var(--edem-theme-on-primary) !important;
}

.section--user-profile .section__title::before {
  background-color: var(--edem-theme-accent) !important;
}

.section--user-profile .user-profile {
  background-color: var(--edem-theme-primary-dark) !important;
  border-color: var(--edem-theme-primary-dark) !important;
  color: var(--edem-theme-on-primary) !important;
}

.section--user-profile .form__icon,
.section--user-profile .input-group-label {
  background-color: var(--edem-theme-surface-alt) !important;
  color: var(--edem-theme-text) !important;
}

.section--user-profile .form__input,
.section--user-profile .input-group-field {
  background-color: var(--edem-theme-surface) !important;
  color: var(--edem-theme-text) !important;
}

.section--user-profile .form__input:disabled,
.section--user-profile .form__input[readonly],
.section--user-profile .input-group-field:disabled,
.section--user-profile .input-group-field[readonly] {
  background-color: color-mix(in srgb, var(--edem-theme-surface-alt) 88%, white) !important;
  color: color-mix(in srgb, var(--edem-theme-text) 74%, white) !important;
  cursor: not-allowed !important;
}

.section--user-profile .button {
  background-color: var(--edem-theme-primary-dark) !important;
  color: var(--edem-theme-on-primary) !important;
}

.section--user-profile .button.alert {
  background-color: var(--edem-theme-secondary) !important;
  color: var(--edem-theme-on-secondary) !important;
}

.section--user-profile .button--expanded {
  background-color: var(--edem-theme-primary-dark) !important;
  color: var(--edem-theme-on-primary) !important;
}

.owner-section > .firsthalf {
  background-color: var(--edem-theme-surface) !important;
}

.owner-section > .firsthalf > .logo > .label {
  color: var(--edem-theme-text) !important;
}

.owner-section > .secondhalf {
  background-color: var(--edem-theme-primary-dark) !important;
  overflow: visible !important;
}

.owner-section > .secondhalf::before {
  content: '' !important;
  display: block !important;
  pointer-events: none !important;
  position: absolute !important;
  z-index: 0 !important;
}

.owner-section > .secondhalf::after {
  content: none !important;
  display: none !important;
}

@media (min-width: 64em) {
  .owner-section > .secondhalf::before {
    background-image: url("data:image/svg+xml,%3Csvg%20style=%22isolation:isolate%22%20version=%221.1%22%20viewBox=%220%200%20128%20320%22%20xmlns=%22http://www.w3.org/2000/svg%22%3E%3Cdefs%3E%3CclipPath%20id=%22a%22%3E%3Crect%20width=%22128%22%20height=%22320%22/%3E%3C/clipPath%3E%3C/defs%3E%3Cg%20clip-path=%22url(%23a)%22%3E%3Cpath%20d=%22m80%200c-53.81%2074.25-80%20156.5-80%20232%200%2041.3%204.25%2069.2%208%2088h48l14-120%2058-200h-48z%22%20fill=%22%23ce2a29%22/%3E%3Cpath%20d=%22m89.29%20124.3l38.71-124.3h-32c-19%2023.43-45.2%2094.29-47.6%20156.6q-2.4%2062.4%2021.6%2082.4l19.29-114.7z%22%20fill=%22%23ffffff%22/%3E%3Cpath%20d=%22m128%200c-64.7%2077.75-76.09%20147.4-79.89%20200-2.86%2039.7.83%2088.2%206.66%20120h73.23v-320z%22%20fill=%22%23003d73%22/%3E%3C/g%3E%3C/svg%3E") !important;
    background-position: calc(100% + 1px) -1px !important;
    background-repeat: no-repeat !important;
    background-size: auto calc(100% + 2px) !important;
    bottom: 0 !important;
    height: 100% !important;
    right: 100% !important;
    top: 0 !important;
    width: 15rem !important;
  }
}

@media (max-width: 63.9375em) {
  .owner-section > .secondhalf::before {
    background-image: url("data:image/svg+xml,%3Csvg%20style=%22isolation:isolate%22%20xmlns=%22http://www.w3.org/2000/svg%22%20version=%221.1%22%20viewBox=%220%200%20480%2080%22%3E%3Cdefs%3E%3CclipPath%20id=%22a%22%3E%3Crect%20width=%22480%22%20height=%2280%22/%3E%3C/clipPath%3E%3C/defs%3E%3Cg%20fill-rule=%22evenodd%22%20clip-path=%22url(%23a)%22%3E%3Cpath%20fill=%22%23ce2a29%22%20d=%22m480%2048c-92.9-72.5-347.1-52.55-480-8v40h480v-32z%22/%3E%3Cpath%20fill=%22%23ffffff%22%20d=%22m480%2032c-150-36.24-347.4-4.58-480%2040v8h480v-48z%22/%3E%3Cpath%20fill=%22%23003d73%22%20d=%22m423.5%2032.86c-151.7-14.87-305.4%206.44-423.5%2046.14v1h480v-40q-38-5.33-56.5-7.14z%22/%3E%3C/g%3E%3C/svg%3E") !important;
    background-position: -4px calc(100% + 2px) !important;
    background-repeat: no-repeat !important;
    background-size: calc(100% + 8px) auto !important;
    bottom: 100% !important;
    height: 12rem !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
  }
}

.owner-section > .secondhalf > .briefing {
  color: var(--edem-theme-on-primary) !important;
  position: relative !important;
  z-index: 1 !important;
}

.owner-section > .secondhalf > .briefing > .owner {
  color: var(--edem-theme-secondary) !important;
  text-shadow: 0 1px 1px color-mix(in srgb, var(--edem-theme-primary-dark) 70%, transparent) !important;
}

.section--audiencias {
  background-color: var(--edem-theme-primary) !important;
}

.section--audiencias .section__info {
  background-color: var(--edem-theme-primary-dark) !important;
}

.section--audiencias .section__title::before,
.section--wikilegis .section__title::before,
.section--discourse .section__title::before {
  background-color: var(--edem-theme-secondary) !important;
}

.section--audiencias .section__button,
.section--wikilegis .section__button,
.section--discourse .section__button {
  background-color: transparent !important;
}

.section--audiencias .section__button,
.section--wikilegis .section__button {
  background-image: linear-gradient(var(--edem-theme-accent), var(--edem-theme-accent)) !important;
  color: var(--edem-theme-on-primary) !important;
}

.section--discourse .section__button {
  background-image: linear-gradient(var(--edem-theme-primary), var(--edem-theme-primary)) !important;
  color: var(--edem-theme-text) !important;
}

.section--audiencias .section__title::before {
  background-color: var(--edem-theme-accent) !important;
}

.section--audiencias .section__info {
  color: var(--edem-theme-on-primary) !important;
}

.section--wikilegis {
  background:
    linear-gradient(
      135deg,
      color-mix(in srgb, var(--edem-theme-primary-dark) 86%, transparent),
      color-mix(in srgb, var(--edem-theme-primary) 72%, transparent)
    ),
    url("/static/img/wikilegis-bg.png") center center fixed !important;
  background-color: var(--edem-theme-primary-dark) !important;
  background-size: cover !important;
}

.section--wikilegis .section__info {
  background-color: transparent !important;
}

.section--wikilegis .section__text,
.section--wikilegis .section__link {
  color: var(--edem-theme-on-primary) !important;
}

.info-card--wikilegis .card-stats__value {
  color: var(--edem-theme-secondary) !important;
}

.info-card--wikilegis .info-card__icon {
  background-color: transparent !important;
  border-color: var(--edem-theme-secondary) !important;
  color: var(--edem-theme-secondary) !important;
}

.section--discourse .section__title::before,
.info-card--discourse .info-card__header,
.info-card--discourse .card-stats__value {
  background-color: var(--edem-theme-secondary) !important;
  color: var(--edem-theme-on-secondary) !important;
}

.info-card--audiencias .info-card__header--live,
.info-card--audiencias .info-card__header--old-video,
.info-card--audiencias .info-card__header--calendar {
  background-color: var(--edem-theme-primary-dark) !important;
  color: var(--edem-theme-on-primary) !important;
}

.info-card--audiencias .card-stats__value {
  color: var(--edem-theme-secondary) !important;
}

.wikilegis__banner {
  background-color: var(--edem-theme-primary-dark) !important;
}

.wikilegis__banner .banner__info,
.wikilegis__banner .banner__search {
  color: var(--edem-theme-on-primary) !important;
}

.wikilegis__banner .banner__search {
  border-color: var(--edem-theme-accent) !important;
}

.wikilegis__bill-list [class^="item__icon"] {
  background-color: transparent !important;
  border-color: var(--edem-theme-secondary) !important;
  border-style: solid !important;
  border-width: 0.15em !important;
  color: var(--edem-theme-secondary) !important;
}

.wikilegis__bill-list .suggestions__amount,
.bill__content-wrapper .content__close,
.bill__info .extra-infos__highlight,
.bill__info .extra-infos__link {
  color: var(--edem-theme-secondary) !important;
}

.wikilegis__bill-list .item__title,
.wikilegis__bill-list .suggestions__label,
.bill__info .info__title,
.bill__content .title__name {
  color: var(--edem-theme-text) !important;
}

.bill__content,
.bill__amendments {
  background-color: var(--edem-theme-surface-alt) !important;
}

.amendments__nav .nav__item[data-active="true"],
.amendments__nav .nav__item:hover,
.wikilegis .button,
.button--modifier-amendment,
.button--additive-amendment,
.button--supress-amendment,
.comments__submit,
.amendments__form .button,
.actions__link:hover,
.amendments__suggest-button,
.aud-button,
.preview__floating-header,
.show-all__button {
  background-color: var(--edem-theme-secondary) !important;
  border-color: var(--edem-theme-secondary) !important;
  color: var(--edem-theme-on-secondary) !important;
}

body.room-body,
body.room-questions-body {
  background-color: var(--edem-theme-primary-dark) !important;
  color: var(--edem-theme-on-primary) !important;
}

.room-header,
.room-tabs .marker,
.section-top,
.navigation {
  background: linear-gradient(45deg, var(--edem-theme-primary) 0%, var(--edem-theme-primary-dark) 100%) !important;
  color: var(--edem-theme-on-primary) !important;
}

.room-header {
  background: var(--edem-theme-primary-dark) !important;
}

.room-header > .room-title > .info,
.room-video > .room-title > .info,
.room-info > p {
  color: color-mix(in srgb, var(--edem-theme-on-primary) 80%, transparent) !important;
}

.room-header > .logo {
  background-color: var(--edem-theme-primary) !important;
}

.room-header > .logo::after {
  background: linear-gradient(-45deg, var(--edem-theme-primary-dark) calc(50% - 1px), var(--edem-theme-primary) 50%) !important;
}



.room-main::before,
.room-info::before {
  background: linear-gradient(var(--edem-theme-primary-dark), transparent) !important;
}

.room-video > .extras,
.room-h2::after,
.question-box,
.chat__floating-header,
[class^="chat__read-more"],
.read-more,
.questions-section .vote-block__total-votes,
.questions-section .vote-block__upvote-button:not(.disabled),
.question-card .question-actions__button:not(.disabled),
.action-footer {
  background-color: var(--edem-theme-primary) !important;
}

.questions-section .vote-block__upvote-button.voted:not(.disabled),
.questions-section .vote-block__total-votes.voted,
.question-box .button,
.action-footer .action,
.action-footer .button {
  background-color: var(--edem-theme-audiencias) !important;
  border-color: var(--edem-theme-audiencias) !important;
  color: var(--edem-theme-text) !important;
}

.preview--calendar .button,
.preview--calendar .button:hover {
  background-color: var(--edem-theme-secondary) !important;
  color: var(--edem-theme-on-secondary) !important;
}

.room-main .alert {
  background-color: var(--edem-theme-secondary) !important;
  color: var(--edem-theme-on-secondary) !important;
}

.room-tabs {
  background-color: color-mix(in srgb, var(--edem-theme-primary) 55%, transparent) !important;
  border-bottom-color: color-mix(in srgb, var(--edem-theme-audiencias) 55%, transparent) !important;
}

.room-tabs .marker {
  border-bottom-color: var(--edem-theme-audiencias) !important;
}

.room-tabs a,
.room-h2,
.room-info h3,
.calendar-table__weekday,
.calendar-table__day,
.calendar-table__month,
.room-questions .link,
.room-info .link {
  color: var(--edem-theme-audiencias) !important;
}

.preview--live-videos .preview__floating-header,
.preview--calendar .preview__floating-header,
.preview--closed-videos .preview__floating-header {
  background-color: var(--edem-theme-secondary) !important;
  color: var(--edem-theme-on-secondary) !important;
}

.preview__show-all .show-all__button {
  color: var(--edem-theme-on-secondary) !important;
}


.social-share > .button.-twitter,
.question-actions .share-list__item--twitter {
  background-color: #000 !important;
}

.social-share > .button.-twitter::before,
.question-actions .share-list__item--twitter .item__icon::before {
  content: "X" !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 0.625rem !important;
  font-style: normal !important;
  font-weight: 700 !important;
}
