/* ascon — plain black-on-white documentation. */

* {
  box-sizing: border-box;
}

html {
  background: #fff;
  color: #000;
}

body {
  margin: 0 auto;
  padding: 0.75rem 1rem 3rem;
  max-width: 76ch;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.0625rem;
  line-height: 1.45;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 1.5em 0 0.4em;
}

h1 {
  margin-top: 0.5em;
  font-size: 1.75em;
}

h2 {
  font-size: 1.35em;
  border-bottom: 1px solid #000;
  padding-bottom: 0.15em;
}

h3 {
  font-size: 1.1em;
}

p,
ul,
ol,
dl {
  margin: 0.7em 0;
}

li {
  margin: 0.25em 0;
}

a {
  color: #00e;
}

a:visited {
  color: #551a8b;
}

hr {
  border: 0;
  border-top: 1px solid #000;
  margin: 1.6em 0;
}

code,
pre,
samp,
kbd {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.85em;
}

pre {
  padding: 0.5em 0.7em;
  border: 1px solid #000;
  overflow-x: auto;
  line-height: 1.3;
}

pre code {
  font-size: 1em;
}

/* Header diagram: the sponge that every Ascon construction shares. */

.diagram {
  display: block;
  width: 100%;
  height: auto;
  margin: 0.9em auto 0.2em;
  color: #000;
}

.diagram .wire {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.diagram .box {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 1.6;
}

.diagram .xor {
  fill: #fff;
  stroke: currentColor;
  stroke-width: 1.6;
}

.diagram .tap {
  fill: currentColor;
}

.diagram .phase {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.diagram .flow {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.diagram text {
  fill: currentColor;
  text-anchor: middle;
}

.diagram .lbl {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.diagram .cap {
  font-style: italic;
  font-size: 12.5px;
}

.diagram .start {
  text-anchor: start;
}

.diagram .end {
  text-anchor: end;
}

.diagram-tall {
  display: none;
}

@media (max-width: 560px) {
  .diagram-wide {
    display: none;
  }

  .diagram-tall {
    display: block;
    max-width: 300px;
  }
}

nav.top {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.85em;
  margin: 0.25em 0 1em;
  overflow-x: auto;
  white-space: nowrap;
}

table {
  border-collapse: collapse;
  margin: 0.8em 0;
  font-size: 0.92em;
}

caption {
  caption-side: top;
  text-align: left;
  font-style: italic;
  padding: 0.15em 0;
}

th,
td {
  border: 1px solid #000;
  padding: 0.22em 0.55em;
  text-align: left;
  vertical-align: top;
}

thead th {
  background: #e8e8e8;
}

td.n,
th.n {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.table-scroll {
  overflow-x: auto;
}

.notice {
  border: 2px solid #000;
  padding: 0.5em 0.8em;
  margin: 1em 0;
}

.notice p {
  margin: 0.3em 0;
}

.fine {
  font-size: 0.85em;
}

footer {
  margin-top: 2.5em;
  border-top: 1px solid #000;
  padding-top: 0.6em;
  font-size: 0.9em;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  position: static;
}
