@font-face {
  font-family: 'Circular Std';
  font-weight: 700;
  src: url('../../static/fonts/CircularStd-Bold.woff');
  font-display: swap;
}
@font-face {
  font-family: 'Circular Std';
  font-weight: 350;
  src: url('../../static/fonts/CircularStd-Book.woff');
  font-display: swap;
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  src: url('../../static/fonts/Roboto-Light.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 300;
  src: url('../../static/fonts/Roboto-Light-Italic.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  src: url('../../static/fonts/Roboto-Regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: italic;
  font-weight: 400;
  src: url('../../static/fonts/Roboto-Regular-Italic.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  src: url('../../static/fonts/Roboto-Bold.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 400;
  src: url('../../static/fonts/Roboto-Mono-Regular.woff2') format('woff2');
}

:root,
[data-md-color-scheme='default'] {
  --md-typeset-color: hsl(0, 0%, 5%);
  --md-typeset-a-color: hsl(0, 72%, 51%);

  --md-text-font: 'Roboto';
  --md-code-font: 'Roboto Mono';

  --md-accent-fg-color: var(--md-typeset-a-color);
}

.md-header {
  color: var(--md-typeset-color);
}

.md-header__button.md-logo {
  padding-block: 0;
}

.md-header__button.md-logo img {
  /* same as main site */
  width: 182px;
  height: auto;
}

.md-tabs__item {
  height: auto;
}

.md-tabs__link {
  font-size: .8rem;
  margin-top: 0.5em;
  margin-bottom: 0.75em;
}

.md-tabs__item--active .md-tabs__link {
  color: black;
}

.md-typeset :is(h1, h2, h3, h4, h5, h6) {
  color: var(--md-typeset-color);
  font-family: 'Circular Std', sans-serif;
  font-weight: 700;
  line-height: 1;
}

.md-typeset a.headerlink {
  text-decoration: none;
}

.md-typeset :target {
  /* add ck top bar height to anchor link scroll margin */
  scroll-margin-top: calc(var(--md-scroll-margin) + 35px);
}

.md-typeset a {
  text-decoration: underline;
}

.md-typeset a:hover,
.md-nav__link:focus,
.md-nav__link:hover {
  color: var(--md-typeset-a-color);
  filter: brightness(1.1);
  text-decoration: none;
}

[dir='ltr'] .md-typeset :is(ul, ol) {
  margin-left: 0;
}

.md-typeset table:not([class]) :is(th) {
  font-size: 0.875em;
  padding: 0.875em;
  min-width: auto;
}

.md-typeset table:not([class]) :is(td) {
  padding: 0.75em;
  vertical-align: middle;
}

.md-nav__link {
  font-family: 'Circular Std', sans-serif;
}

nav[data-md-level='0'] > ul > li > :is(.md-nav__link) {
  font-weight: 700;
}

.md-typeset code {
  font-size: 1em;
}

.md-typeset :not(pre) code {
  padding: 0 0.25em;
  color: var(--md-typeset-a-color);
  display: inline-block;
}

.md-typeset pre > code {
  display: inline-block;
}

.md-typeset pre {
  max-width: 100%;
  overflow: auto;
}

.md-typeset code.language-coldstyle {
  display: inline-block;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 0.75em;
  line-height: 1.3;
  font-weight: 100;
  background: #111;
  color: #ccf;
  padding: 12px;
  border-radius: 6px;
}

.md-typeset code.language-textfile {
  font-size: 80%;
  margin: 1em 0;
  padding: 1em;
  border: 1px solid #333;
  background-color: #eee;
  border-radius: 5px;
  display: block;
}

.md-typeset img.snap {
  /* screenshots of CC screen */
  border-radius: 6px;
  padding: 12px;
  background: #111;
}

.md-typeset .indented {
  margin-left: 4em;
}

.md-typeset dl {
  line-height: 2;
}

.md-typeset dt {
  font-style: italic;
  font-weight: 700;
}

.md-typeset dd {
  margin: 0 0 0.75em 0 !important;
}

a.vidlink {
  /* jinja2 vidlink macro */
  float: right;

  font-family: 'Circular Std';
  font-size: 0.75rem;
  text-decoration: none;
  text-align: center;

  border: 1px solid hsla(0, 0%, 50%, 0.3);
  border-radius: 0.25em;

  padding: 0.25rem 0.375rem;
  margin-left: 0.75rem;

  max-width: 33%;

  display: flex;
  flex-direction: column;
  align-items: center;
}

a.vidlink > :first-child {
  line-height: 1;
  font-size: 5em;
}

.md-typeset :is(ol, ul):not([hidden]) {
  /*
    the theme sets `display: flow-root;` but that prevents the list from wrapping
    around our floated video links properly.
  */
  display: block;
}

/* Home page */

.md-typeset .landing-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(18rem, 80vw), 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.md-typeset .landing-page-tile {
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: hsl(0, 0%, 97%);
  border: 1px solid hsl(0, 0%, 90%);
}

.md-typeset .landing-page-tile h2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.md-typeset .landing-page-tile ul {
  margin-left: 0;
  list-style: none;
}

.md-typeset .landing-page-tile ul li {
  margin-left: 0;
  margin-bottom: 0.25em;
}

/* Hardware wallet comparison table stuff. */

table.comparison-table {
  width: 100%;
  margin-bottom: 1rem;
  color: #212529;
  font-size: 0.625rem;

  border: 1px solid #f1f1f1;
  border-collapse: collapse;
}

table.comparison-table * {
  vertical-align: middle;
  word-break: keep-all;
}

table.comparison-table :is(tbody, td, tfoot, th, thead, tr) {
  border-color: inherit;
  border-style: solid;
  border-width: 0;
}

@media all and (max-width: 767px) {
  table.comparison-table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

table.comparison-table thead tr {
  border-top-width: 1px;
}

table.comparison-table thead tr,
table.comparison-table tbody tr {
  border-left-width: 1px;
}

table.comparison-table tr.row-group td {
  background: #f9f9f9 !important;
}

table.comparison-table tbody tr:last-child td:nth-child(2) {
  border-bottom: 2px solid #00ca6e !important;
}

table.comparison-table > :is(thead, tbody):not(caption) > * > * {
  padding: 0.5rem 0.5rem;
  background-color: #fefefe;
  border-bottom-width: 1px;
  border-right-width: 1px;
  box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
  text-align: center;
}

table.comparison-table thead th {
  color: #000;
  font-weight: 700;
  line-height: 1.1;
  padding: 10px;
}

table.comparison-table thead th:first-child {
  color: #000;
  font-weight: 700;
  line-height: calc(19 / 16);
  padding: 0 20px;
  text-align: left;
}

table.comparison-table tr td:nth-child(2) {
  background-color: #fff;
  filter: drop-shadow(0px 20px 30px rgb(0, 0, 0, 5%));
  border-right: 2px solid #00ca6e !important;
  border-left: 2px solid #00ca6e;
}

table.comparison-table thead tr th:nth-child(2) {
  background-color: #00ca6e;
  border: 2px solid #00ca6e;
}

table.comparison-table thead tr th:nth-child(2) a {
  color: #fff;
  text-decoration: none;
}

table.comparison-table thead tr th:nth-child(2) a:hover {
  text-decoration: underline;
}

table.comparison-table > tbody:not(caption) > * > *:is([scope='row'], [scope='rowgroup']) {
  padding-left: 1.5em;
  text-align: left;
  font-weight: 700;
}
table.comparison-table > tbody:not(caption) > * > *[scope='rowgroup'] {
  background: #f9f9f9;
  font-size: 0.875em;
  font-weight: 700;
}
table.comparison-table thead > * > * {
  border-bottom-width: 1px;
  padding: 0.5em 0.5em;
}
