/* Page-specific additions to the stylesheet shared with pratikpatil.io. */
body {
  max-width: calc(100% - 2rem);
  padding-bottom: 1.5rem;
  color: black;
  background: white;
}

.masthead,
.masthead nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
}

.masthead {
  justify-content: space-between;
  column-gap: 1rem;
  padding: 2px 3px 0;
}

.masthead nav {
  gap: .25rem 19px;
  font-weight: bold;
  font-size: 15pt;
}

.masthead a {
  text-decoration: none;
  color: black;
}

.masthead a[aria-current] {
  text-decoration: underline;
}

.site-name {
  font-size: 2em;
  font-weight: bold;
}

main {
  line-height: 1.35;
}

main h1,
main h2 {
  line-height: 1.15;
  overflow-wrap: anywhere;
}

main h1 {
  font-size: 1.5em;
  margin: .83em 0 .35em;
  text-wrap: balance;
}

main .companion-title {
  font-size: 1.375em;
}

main h2 {
  font-size: 1.25em;
  margin: 1.4em 0 .5em;
}

.by {
  margin: 0;
}

.resources {
  display: flex;
  flex-wrap: wrap;
  gap: .2em .65em;
  margin: 1em 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: .45em .65em;
}

th {
  border-bottom: 1px solid;
}

td {
  border-bottom: 1px solid #ccc;
}

th:first-child, td:first-child {
  padding-left: 0;
}

th:last-child, td:last-child {
  padding-right: 0;
}

td.result {
  width: 7.25em;
}

td.links {
  width: 8.25em;
}

summary {
  cursor: pointer;
}

summary::marker {
  font-size: .75em;
}

details ul {
  margin: .35em 0;
}

.extra {
  margin: .5em 0;
}

.mini {
  font-size: .925em;
}

.meta {
  margin: 1em 0;
}

code {
  overflow-wrap: anywhere;
}

pre {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #bbb;
  background: #fafafa;
  padding: .65em .4em;
  font: .9rem/1.45 Consolas, "DejaVu Sans Mono", monospace;
  tab-size: 2;
}

.line {
  display: block;
  width: max-content;
  min-width: 100%;
  scroll-margin-top: 1em;
}

.line a {
  display: inline-block;
  box-sizing: border-box;
  width: 4em;
  padding-right: 1em;
  text-align: right;
  color: #555;
  text-decoration: none;
  user-select: none;
}

.line a:hover {
  text-decoration: underline;
}

.line:target, tr:target, li:target {
  background: #fff4bd;
}

.audit li {
  margin: .6em 0;
}

a:focus-visible, summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (max-width: 38rem) {
  .masthead { row-gap: .2em; }
  .masthead nav { gap: .25em .7em; font-size: 1.1em; }
  table, tbody, tr, td { display: block; }
  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
  }
  tr { border-bottom: 1px solid #ccc; padding: .6em 0; }
  td, td.result, td.links { width: auto; border: 0; padding: .12em 0; }
  td.links { margin-top: .25em; }
}
