/*
   Copyright 2022 Marc Nuri San Felix

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 */
:root {
  --code-border-radius: 6px;
}

html.electronim,
.electronim body {
  background: var(--color-canvas-default);
  color: var(--color-fg-default);
}

html.electronim {
  box-sizing: border-box;
  text-size-adjust: 100%;
}

.electronim *,
.electronim *::before,
.electronim *::after {
  box-sizing: inherit;
}

.electronim a {
  background-color: transparent;
  color: var(--color-accent-fg);
  text-decoration: none;
}

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

.electronim code {
  background-color: var(--color-neutral-muted);
  border-radius: var(--code-border-radius);
  color: var(--color-fg-default);
  font-size: 85%;
  padding: 0.2em 0.4em;
}

.electronim pre code {
  background-color: transparent;
  border: none;
  color: var(--color-fg-default);
  padding: 0;
}

.electronim blockquote {
  padding: 0 1em;
  color: var(--color-fg-muted);
  border-left: .25em solid var(--color-border-default);
}

.electronim pre {
  background-color: var(--color-canvas-subtle);
  border-radius: 6px;
  font-size: 85%;
  padding: 16px;
  overflow-x: auto;
}

.electronim table {
  border-spacing: 0;
  border-collapse: separate;
  border-radius: var(--md-sys-shape-corner-medium-default-size, 12px);
  overflow: hidden;
  background-color: var(--md-sys-color-surface-variant);
  width: 100%;
}

.electronim table th,
.electronim table td {
  border: none;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  color: var(--md-sys-color-on-surface);
  padding: 12px 16px;
  text-align: left;
}

.electronim table th {
  background-color: var(--md-sys-color-surface-variant);
  color: var(--md-sys-color-on-surface-variant);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.1px;
  text-transform: none;
  border-bottom: 2px solid var(--md-sys-color-outline);
}

.electronim table tbody tr {
  background-color: var(--md-sys-color-surface);
  transition: background-color 0.2s ease;
}

.electronim table tbody tr:hover {
  background-color: rgba(var(--md-sys-color-primary), 0.08);
}

.electronim table tbody tr:last-child td {
  border-bottom: none;
}
