/* Reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;

  margin-top: 0.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-wrap: balance;
}

#root,
#__next {
  isolation: isolate;
}

/* General */

body {
  --color-blue: #25408f;
  --color-tan: #f7f9fa;
  --color-tan-dark: #e9ecec;
  --font-roboto: "Roboto", sans-serif;
  --font-crimson: "Crimson Text", serif;

  font-family: var(--font-roboto);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: "wdth" 100;
  margin: 2em auto;
  padding-inline: 2rem;
  max-width: 900px;
  color: rgb(55, 53, 47);
  background-color: var(--color-tan);
}

a {
  color: var(--color-blue);
  text-decoration: underline;
}

/* Headings */

h1,
h2,
h3 {
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 0;
}

h1 {
  color: var(--color-blue);
  padding-block: 0.125rem;
  font-family: var(--font-crimson);
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 -3px 0 var(--color-tan), 0 -4px 0 currentcolor,
    0 -6px 0 var(--color-tan), 0 -10px 0 currentColor, 0 1px 0 currentcolor,
    0 3px 0 var(--color-tan), 0 7px 0 currentColor;

  font-size: 1.875rem;
  margin-top: 2.375rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.25rem;
}

/* Header */

.logo {
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.page-title {
  font-size: 2.5rem;
  margin-top: 0;
  margin-bottom: 0.75em;
}

/* Table of Contents */

.table_of_contents-item {
  font-size: 0.875rem;
  display: block;
  line-height: 1.3;
  padding: 0.125rem;
}

.table_of_contents-indent-1 {
  margin-left: 1.5rem;
}

.table_of_contents-indent-2 {
  margin-left: 3rem;
}

.table_of_contents-indent-3 {
  margin-left: 4.5rem;
}

.table_of_contents-link {
  text-decoration: none;
  border-bottom: 1px solid currentcolor;
}

/* Tables */

table,
th,
td {
  border: 1px solid rgba(55, 53, 47, 0.09);
  border-collapse: collapse;
}

table {
  border-left: none;
  border-right: none;
}

th,
td {
  font-weight: normal;
  padding: 0.25em 0.5em;
  line-height: 1.5;
  min-height: 1.5em;
  text-align: left;
}

th {
  color: rgba(55, 53, 47, 0.6);
}

.simple-table {
  font-size: 0.875rem;
  margin-top: 1em;
  empty-cells: show;

  & .right-align {
    text-align: right;
  }
}

.simple-table td {
  height: 29px;
  min-width: 60px;
}

.simple-table th {
  height: 29px;
  min-width: 60px;
}

.simple-table-header-color {
  background: var(--color-tan-dark);
  color: black;
}

.simple-table-header {
  font-weight: 500;
}

/* Lists */

ol,
ul {
  margin: 0;
  margin-block-start: 0.6em;
  margin-block-end: 0.6em;
}

li > ol:first-child,
li > ul:first-child {
  margin-block-start: 0.6em;
}

ul > li {
  list-style: disc;
}

ul.toggle > li {
  list-style: none;
}

ul {
  padding-inline-start: 1.7em;
}

ul > li {
  padding-left: 0.1em;
}

ol {
  padding-inline-start: 1.6em;
}

ol > li {
  padding-left: 0.2em;
}

/* Blocks */

.page-body {
  margin-top: 3rem;
}

.icon {
  display: inline-block;
  max-width: 1.2em;
  max-height: 1.2em;
  text-decoration: none;
  vertical-align: text-bottom;
  margin-right: 0.5em;
  line-height: 0;
}

img.icon {
  border-radius: 3px;
}

.armada-icon {
  width: 0.875em;
  height: 0.875em;
  display: inline-block;
  text-decoration: none;
  line-height: 0;
  transform: translateY(0.1em);
}

.callout {
  border-radius: 3px;
  padding: 1rem;
  display: flex;
  align-items: center;
}

figure {
  margin: 1.25em 0;
  page-break-inside: avoid;
}

figcaption {
  font-size: 85%;
  opacity: 0.5;
  margin-top: 0.5em;
}

.block-color-gray_background {
  background: var(--color-tan-dark);
}

/* Columns */

.column-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
  margin-top: 1rem;

  &.landscape {
    max-width: calc(330px * 2 + 1rem);
  }

  &.portrait {
    max-width: calc(237px * 2 + 1rem);
  }

  & .column {
    width: fit-content;
  }

  & figure {
    margin-top: 0;
    width: fit-content;
  }

  & a {
    display: inline-block;
  }
}

@media screen and (max-width: 600px) {
  .page-title {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 0.5em;
  }

  h1 {
    font-size: 1.5rem;
    margin-top: 2rem;
  }

  h2 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
  }

  h3 {
    font-size: 1.125rem;
    margin-top: 1.25rem;
  }

  .table_of_contents-item {
    font-size: 1rem;
  }

  .simple-table {
    font-size: 1rem;
  }

  figcaption {
    font-size: 1rem;
  }

  .column-list {
    grid-template-columns: 1fr;
  }
}
