@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,100..900;1,100..900&family=Noto+Sans+JP:wght@100..900&display=swap");

@font-face {
  font-family: "New Computer Modern Sans Math";
  src: url("../fonts/newcmsansmath-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "TeX Gyre Cursor";
  src: url("../fonts/texgyrecursor-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "TeX Gyre Cursor";
  src: url("../fonts/texgyrecursor-italic.woff") format("woff");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "TeX Gyre Cursor";
  src: url("../fonts/texgyrecursor-bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "TeX Gyre Cursor";
  src: url("../fonts/texgyrecursor-bolditalic.woff") format("woff");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

/* Design tokens */

:root {
  --color-background: #fff;
  --color-text: #171717;
  --color-muted: #6b6b66;
  --color-border: #e7e7e2;
  --content-width: 68rem;
  --title-block-margin-top: 5rem;
  --font-mono: "TeX Gyre Cursor", "Courier New", monospace;
  --font-sans:
    "Noto Sans", "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, Meiryo, sans-serif;
  --font-math: "New Computer Modern Sans Math", math;
  --reading-width: 54rem;
  --bs-body-font-family: var(--font-sans);
}

/* Base */

* {
  box-sizing: border-box;
}

html {
  background: var(--color-background);
  font-size: 16px;
}

body {
  --reading-margin-left: max(1.5rem, calc((100% - var(--content-width)) / 2));

  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 100dvh;
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

body:has(.quarto-listing) {
  --reading-width: var(--content-width);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

.d-none {
  display: none;
}

/* Site header */

#quarto-header .navbar {
  min-height: 0;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background);
}

#quarto-header .navbar-container {
  max-width: none;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

#quarto-header .navbar-brand {
  margin: 0;
  padding: 0;
  color: inherit;
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: none;
}

#quarto-header .navbar-brand:hover {
  color: var(--color-muted);
}

#quarto-header .navbar-brand:focus-visible,
.footer .nav-link:focus-visible,
.listing-title:focus-visible,
body > a:focus-visible {
  border-radius: 0.15rem;
  outline: 2px solid currentColor;
  outline-offset: 0.25rem;
}

/* Page layout */

body > #quarto-content {
  flex: 1 0 auto;
  /* biome-ignore lint/complexity/noImportantStyles: override Quarto's inline minimum height so flex layout includes footer spacing. */
  min-height: 0 !important;
}

.page-layout-custom,
.nav-footer {
  width: min(calc(100% - 3rem), var(--reading-width));
  margin-inline: auto;
}

.page-layout-custom {
  font-family: var(--font-sans);
  font-variant-numeric: normal;
}

:root:lang(ja) .page-layout-custom {
  font-variant-numeric: lining-nums proportional-nums;
}

.page-layout-custom > :is(h1, h2, h3, h4, h5, h6),
#title-block-header :is(.title, .author, .date, .abstract-title),
#TOC,
.quarto-listing {
  font-family: var(--font-sans);
  font-variant-numeric: normal;
}

#quarto-content.page-layout-custom > * {
  padding-top: 0;
}

.page-layout-custom > .quarto-listing {
  width: 100%;
  margin-top: 0;
}

/* Title block */

#title-block-header,
.page-layout-custom > h1 {
  margin-top: var(--title-block-margin-top);
  margin-bottom: 2.75rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--color-border);
}

body.home-page #title-block-header {
  padding-bottom: 1.5rem;
}

body:has(.quarto-listing) .page-layout-custom > #title-block-header {
  margin-bottom: 2rem;
  padding-bottom: 0;
  border-bottom: 0;
}

#title-block-header .title,
.page-layout-custom > h1 {
  margin-block: 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.2;
}

body:has(.quarto-listing) .page-layout-custom > #title-block-header .title {
  font-size: 2rem;
}

:where(
  body:has(.quarto-listing) .page-layout-custom > #title-block-header + p
) {
  color: var(--color-muted);
  font-size: 1.05rem;
}

#title-block-header .author,
#title-block-header .date {
  display: inline-block;
  margin-top: 1.25rem;
  margin-bottom: 0;
  color: var(--color-muted);
}

#title-block-header .author {
  font-size: 0.85rem;
  line-height: 1.3;
}

#title-block-header .date {
  font-size: 0.85rem;
  line-height: 1.3;
}

#title-block-header .author + .date::before {
  content: "";
  display: inline-block;
  height: 0.8em;
  margin-inline: 0.75rem;
  border-left: 1px solid var(--color-border);
}

#title-block-header .abstract {
  margin-top: 2rem;
  color: var(--color-text);
  font-size: 0.85rem;
  line-height: 1.529;
}

#title-block-header .description-abstract {
  display: none;
}

body.article-page #title-block-header .description-abstract {
  display: block;
}

.description-abstract > p {
  margin: 0;
}

#title-block-header .abstract-title {
  margin-bottom: 0.35rem;
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.167;
  text-transform: uppercase;
}

/* Document typography */

.page-layout-custom > p {
  margin-top: 0;
  margin-bottom: 0.625rem;
}

.page-layout-custom > :is(h2, h3, h4),
#quarto-appendix .quarto-appendix-heading {
  letter-spacing: -0.01em;
}

.page-layout-custom > h2,
#quarto-appendix .quarto-appendix-heading {
  padding: 0;
  border: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  opacity: 1;
}

.page-layout-custom > h2 {
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  line-height: 1.4;
}

#quarto-appendix .quarto-appendix-heading {
  margin-block: 1.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

.page-layout-custom > h3 {
  margin-top: 2rem;
  margin-bottom: 0.625rem;
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.4;
}

/* Run-in subsubsections, matching LaTeX's paragraph-style heading. */
.page-layout-custom > h4 {
  display: inline;
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: inherit;
}

.page-layout-custom > h4:not(:first-child)::before {
  display: block;
  height: 1.25rem;
  content: "";
}

.page-layout-custom > h4::after {
  display: inline-block;
  width: 0.75em;
  content: "";
}

.page-layout-custom > h4 + p {
  display: inline;
}

.page-layout-custom > h4 + p::after {
  display: block;
  margin-bottom: 0.625rem;
  content: "";
}

.page-layout-custom > ul,
.page-layout-custom > ol {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  padding-left: 1.25rem;
}

.page-layout-custom > :is(ul, ol) li + li {
  margin-top: 0.5rem;
}

/* Table of contents */

#TOC {
  margin-top: -0.5rem;
  margin-bottom: 4rem;
  padding-block: 1.25rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}

#TOC #toc-title {
  margin: 0 0 0.75rem;
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.06em;
}

#TOC ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

:where(#TOC) a {
  display: inline-block;
  text-decoration: none;
}

:where(#TOC) a:hover {
  color: var(--color-text);
}

body.article-page #TOC a {
  padding-left: 0;
}

body.article-page #TOC a.active {
  color: var(--color-text);
  font-weight: 600;
}

body.article-page :is(h2, h3, h4)[id] {
  scroll-margin-top: max(
    6.5rem,
    calc(var(--article-header-height, 0px) + 2rem)
  );
}

/* Blog tables and task lists */

:where(body.article-page)
  .page-layout-custom
  :where(table:not(.quarto-listing-table)) {
  display: table;
  width: 100%;
  margin-block: 2rem;
  border: 0;
  border-collapse: collapse;
  color: var(--color-text);
  font-size: 0.875rem;
  line-height: 1.5;
}

:where(body.article-page)
  .page-layout-custom
  :where(table:not(.quarto-listing-table) th),
:where(body.article-page)
  .page-layout-custom
  :where(table:not(.quarto-listing-table) td) {
  height: 2.5rem;
  padding: 0.5rem;
  border: 0;
  background: transparent;
  vertical-align: middle;
}

:where(body.article-page)
  .page-layout-custom
  :where(table:not(.quarto-listing-table) th) {
  color: var(--color-text);
  font-size: inherit;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

:where(body.article-page)
  .page-layout-custom
  :where(table:not(.quarto-listing-table) tr) {
  border-bottom: 1px solid var(--color-border);
  transition: background-color 120ms ease;
}

:where(body.article-page)
  .page-layout-custom
  :where(table:not(.quarto-listing-table) tbody tr:last-child) {
  border-bottom: 0;
}

:where(body.article-page)
  .page-layout-custom
  :where(table:not(.quarto-listing-table) tbody tr:hover) {
  background: rgb(23 23 23 / 2.5%);
}

:where(body.article-page)
  .page-layout-custom
  :where(table:not(.quarto-listing-table) caption) {
  padding: 0.75rem 0 0;
  color: var(--color-muted);
  font-size: 0.8rem;
  text-align: left;
}

body.article-page ul.task-list {
  display: grid;
  gap: 0.55rem;
  margin-block: 1.5rem;
  padding-left: 0;
}

body.article-page ul.task-list > li {
  margin: 0;
}

body.article-page ul.task-list > li > label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: fit-content;
  cursor: pointer;
}

body.article-page ul.task-list li input[type="checkbox"] {
  display: grid;
  width: 1rem;
  height: 1rem;
  margin: 0.35rem 0 0;
  flex: 0 0 auto;
  appearance: none;
  place-content: center;
  border: 1px solid #a9a9a2;
  border-radius: 0.15rem;
  background: var(--color-background);
  cursor: pointer;
  transition:
    background-color 120ms ease,
    border-color 120ms ease;
}

body.article-page ul.task-list li input[type="checkbox"]::after {
  width: 0.5rem;
  height: 0.28rem;
  border-bottom: 2px solid var(--color-background);
  border-left: 2px solid var(--color-background);
  content: "";
  transform: translateY(-0.05rem) rotate(-45deg) scale(0);
  transition: transform 100ms ease;
}

body.article-page ul.task-list li input[type="checkbox"]:checked {
  border-color: var(--color-text);
  background: var(--color-text);
}

body.article-page ul.task-list li input[type="checkbox"]:checked::after {
  transform: translateY(-0.05rem) rotate(-45deg) scale(1);
}

body.article-page ul.task-list li input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

body.article-page ul.task-list > li > label:has(input:checked) {
  color: var(--color-muted);
}

@media (min-width: 75rem) {
  body.article-page {
    --reading-width: 48rem;
  }

  body.article-page .page-layout-custom,
  body.article-page .nav-footer {
    margin-right: auto;
    margin-left: var(--reading-margin-left);
  }

  body.article-page .page-layout-custom {
    position: relative;
  }

  body.article-page .article-toc-rail {
    position: absolute;
    top: var(--title-block-margin-top);
    bottom: 0;
    left: calc(100% + 6rem);
    width: 14rem;
  }

  body.article-page #TOC {
    --toc-top: max(5.5rem, calc(var(--article-header-height, 0px) + 1rem));
    position: sticky;
    top: var(--toc-top);
    width: 100%;
    max-height: calc(100vh - var(--toc-top) - 1.5rem);
    margin: 0;
    padding-block: 0;
    overflow-y: auto;
  }
}

/* Statements: the colors and rules of the preliminaries (palette.sty and
   handout.tex). The color tells the kind, a filled background tells that the
   content is new, and a rule on the left alone tells that it is known. */

.statement-thm { --kind-color: #1f4e79; --kind-fill: #ecf2f8; }
.statement-exm { --kind-color: #2e7d46; --kind-fill: #e9f5eb; }
.statement-chk { --kind-color: #000; --kind-fill: #f0f0f0; }
.statement-que { --kind-color: #6f42a3; --kind-fill: #f2eef7; }
.statement-exr { --kind-color: #d67820; --kind-fill: #fbf3eb; }
.statement-opn { --kind-color: #855e38; --kind-fill: #f3efeb; }
.statement-rem { --kind-color: #1f4e79; }

.statement,
.proof {
  margin-block: 1.75rem;
}

/* A box without a fill needs less space above and below its content. */
.statement {
  padding: 0.3rem 0.9rem;
  border-left: 1px solid var(--kind-color);
  background: var(--color-background);
}

.statement-new {
  padding-block: 0.9rem;
  background: var(--kind-fill);
}

.statement-rem {
  border-left: 0.6pt solid #8fa7bc;
}

.statement-heading,
.part-heading {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--kind-color, var(--color-text));
}

.statement-name {
  font-weight: 400;
}

.part-heading a {
  color: inherit;
}

.part {
  margin-block: 0.75rem;
}

.part-hint {
  font-size: 0.92em;
}

/* The proof contains its floated open square. */
.proof {
  display: flow-root;
}

.proof-heading {
  font-weight: 700;
}

.proof-qed {
  float: right;
  margin-left: 1em;
}

.statement > :first-child,
.proof > :first-child,
.part > :first-child {
  margin-top: 0;
}

.statement > :last-child,
.proof > :last-child,
.part > :last-child {
  margin-bottom: 0;
}

/* A display that ends a statement leaves only the padding of the box below it. */
:is(.statement, .part) > :last-child > :is(math[display="block"], .numbered-equation):last-child {
  margin-bottom: 0;
}

/* Code */

.code-copy-outer-scaffold {
  position: relative;
  margin-block: 1.75rem;
}

div.sourceCode {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 0.35rem;
  background: #f7f7f4;
}

pre.sourceCode {
  margin: 0;
  padding: 1.25rem;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.65;
}

code {
  font-family: var(--font-mono);
}

:not(pre) > code {
  padding: 0.12em 0.3em;
  border-radius: 0.2rem;
  background: #f2f2ef;
  font-size: 0.88em;
}

.code-copy-button {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  min-width: 3.25rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0.25rem;
  background: var(--color-background);
  color: var(--color-muted);
  font: inherit;
  font-size: 0.68rem;
  cursor: pointer;
}

.code-copy-button::before {
  content: "Copy";
}

.code-copy-button-checked::before {
  content: "Copied";
}

.code-copy-button > i {
  display: none;
}

.code-copy-button:hover {
  border-color: var(--color-muted);
  color: var(--color-text);
}

/* Cells and media */

.cell,
.quarto-float {
  margin-block: 2rem;
}

.quarto-figure.quarto-float {
  margin-block: 1.5rem;
}

.cell > :first-child,
.quarto-float > :first-child {
  margin-top: 0;
}

.cell > :last-child,
.quarto-float > :last-child {
  margin-bottom: 0;
}

.cell-output {
  margin-top: 1rem;
}

.cell-output-stdout pre {
  margin: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border-left: 2px solid var(--color-border);
  background: #fafaf8;
  color: var(--color-muted);
  font-size: 0.8rem;
  line-height: 1.65;
}

.quarto-float figure {
  margin: 0;
}

.quarto-figure-center {
  text-align: center;
}

.quarto-figure figure > div:first-child {
  width: var(--figure-width, 75%);
  margin-inline: auto;
}

.quarto-figure figure > img:first-child {
  max-width: var(--figure-width, 75%);
}

.quarto-video {
  margin-block: 1.5rem;
}

.quarto-video video {
  display: block;
  width: 100%;
  border-radius: 0.25rem;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

figcaption {
  margin-top: 0.5rem;
  color: var(--color-muted);
  font-size: 0.8rem;
  text-align: left;
}

.quarto-figure figcaption {
  width: var(--figure-width, 75%);
  margin-inline: auto;
  color: var(--color-text);
}

.quarto-figure .figure-img {
  margin-bottom: 0;
}

/* Math and references */

math {
  color: #30302d;
  font-family: var(--font-math);
  font-size: 1em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

math[display="block"] {
  margin-block: 1.75rem;
  padding-block: 0.25rem;
  overflow-x: auto;
  overflow-y: hidden;
}

/* Temml keeps AMS equation numbers in the final table cell. */
math:has(.tml-eqn) {
  position: relative;
}

math:has(.tml-eqn) mtable.tml-jot > mtr > mtd:last-child {
  position: absolute;
  right: 0;
  text-align: right;
}

.numbered-equation {
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr) 3em;
  align-items: center;
  column-gap: 0.5em;
  margin-block: 1.75rem;
}

.equation-body {
  grid-column: 2;
  min-width: 0;
}

.equation-body > math[display="block"] {
  margin-block: 0;
}

.equation-number {
  grid-column: 3;
  justify-self: end;
  font-family: var(--font-math);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tippy-content .numbered-equation,
.tippy-content .statement {
  margin-block: 0;
}

/* Hover previews: wider than the 500px that Quarto sets inline, with room
   around the statement. Quarto puts the preview inside the parent of the
   link, so the preview resets the weight of a bold heading such as
   "Solution of Exercise 13". */
.tippy-box[data-theme~="quarto"] {
  max-width: min(42rem, calc(100vw - 2rem)) !important;
  font-size: 0.95rem;
  font-weight: 400;
}

.tippy-box[data-theme~="quarto"] > .tippy-content {
  padding: 1rem 1.1rem;
}

.quarto-xref,
.citation a,
#quarto-appendix #refs a {
  text-decoration-line: underline;
  text-decoration-color: var(--color-border);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.citation a {
  text-decoration-color: var(--color-muted);
  text-decoration-style: dotted;
}

.quarto-xref:hover,
.citation a:hover,
#quarto-appendix #refs a:hover {
  text-decoration-color: currentColor;
  text-decoration-style: solid;
}

.anchorjs-link {
  color: var(--color-muted);
  text-decoration: none;
  opacity: 0;
}

.anchored:hover > .anchorjs-link,
.anchorjs-link:focus-visible {
  opacity: 1;
}

#quarto-appendix #refs {
  color: var(--color-muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.tippy-content .hanging-indent {
  margin-left: 0;
  text-indent: 0;
}

#quarto-appendix #refs.hanging-indent {
  margin-right: auto;
  margin-left: 0;
  text-indent: 0;
}

#quarto-appendix #refs.hanging-indent .csl-entry {
  margin-left: 1.5rem;
  text-indent: -1.5rem;
}

#quarto-appendix #refs a {
  overflow-wrap: anywhere;
}

.tippy-content math[display="block"] {
  margin: 0;
  padding: 0;
  overflow: visible;
}

#quarto-appendix #refs .csl-entry + .csl-entry {
  margin-top: 0.75rem;
}

/* Profile */

body:has(.profile-introduction) {
  --reading-width: var(--content-width);
  --reading-margin-left: auto;
}

body:has(.profile-introduction) #title-block-header {
  margin-top: 6rem;
  margin-bottom: 2rem;
  padding-bottom: 0;
  border-bottom: 0;
}

body:has(.profile-introduction) #title-block-header .title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.profile-introduction {
  margin-top: 0;
  padding-bottom: 4rem;
  color: #525252;
  font-size: 1.125rem;
  line-height: 2rem;
}

.profile-introduction > p {
  margin: 0;
}

/* Post listing */

.quarto-listing-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.quarto-listing-table thead {
  display: none;
}

.quarto-listing-table th {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-text);
  color: var(--color-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: left;
}

.quarto-listing-table td {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.quarto-listing-table th:not(:last-child),
.quarto-listing-table td:not(:last-child) {
  padding-right: 2rem;
}

.quarto-listing-table th:first-child,
.quarto-listing-table td:first-child {
  width: 9rem;
}

.quarto-listing-table th:nth-child(2),
.quarto-listing-table td:nth-child(2) {
  width: 34%;
}

.listing-date {
  color: var(--color-muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.quarto-listing-table .listing-title {
  font-family: var(--font-sans);
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  font-weight: 600;
  line-height: 1.5;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 150ms ease;
}

.quarto-listing-table .listing-title:hover,
.quarto-listing-table .listing-title:focus-visible {
  text-decoration-color: currentColor;
}

.listing-abstract,
.listing-description {
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.65;
}

.listing-pagination {
  display: flex;
  width: 100%;
  margin-top: 2.5rem;
  justify-content: center;
}

.listing-pagination .pagination {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.listing-pagination .page-item {
  display: flex;
  align-items: center;
}

.listing-pagination .page-link {
  display: grid;
  min-width: 2rem;
  height: 2.25rem;
  padding-inline: 0.5rem;
  place-items: center;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--color-muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

.listing-pagination a.page-link:hover {
  background: #f4f4f1;
  color: var(--color-text);
}

.listing-pagination button.page-link {
  font-family: inherit;
  cursor: pointer;
}

.listing-pagination a.page-link:focus-visible {
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

.listing-pagination .page-item.disabled .page-link {
  color: #a1a19a;
  cursor: default;
  pointer-events: none;
}

.listing-pagination .pagination-direction-item:first-child {
  margin-right: 0.75rem;
}

.listing-pagination .pagination-direction-item:last-child {
  margin-left: 0.75rem;
}

.listing-pagination .pagination-direction {
  width: auto;
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.listing-pagination .page-item.active .page-link {
  border-bottom-color: var(--color-text);
  background: transparent;
  color: var(--color-text);
  font-weight: 600;
}

/* Site footer */

.footer {
  flex-shrink: 0;
  margin-top: 6rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-background);
  color: var(--color-muted);
}

.nav-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  min-height: 0;
  padding-block: 1.75rem;
  font-size: 1rem;
  letter-spacing: -0.005em;
  line-height: 1.5;
}

footer.footer .nav-footer {
  padding-inline: 0;
}

.nav-footer-left {
  grid-row: 1;
  grid-column: 1;
  justify-self: start;
  text-align: left;
}

.nav-footer .footer-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  justify-self: start;
}

.nav-footer-center {
  grid-row: 2;
  grid-column: 1;
  justify-self: center;
  text-align: center;
  white-space: nowrap;
}

.nav-footer-right {
  display: none;
}

.nav-footer p {
  margin: 0;
}

.nav-footer .footer-items .nav-link {
  padding: 0;
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}

.nav-footer .nav-link:hover {
  color: var(--color-text);
}

/* Responsive */

@media (max-width: 44rem) {
  :where(body.article-page)
    .page-layout-custom
    :where(table:not(.quarto-listing-table)) {
    display: block;
    overflow-x: auto;
  }

  .page-layout-custom,
  .nav-footer {
    width: min(calc(100% - 2.5rem), var(--content-width));
    margin-inline: auto;
  }

  .quarto-figure figure > div:first-child {
    width: 100%;
  }

  .quarto-figure figure > img:first-child {
    max-width: 100%;
  }

  .quarto-figure figcaption {
    width: 100%;
  }

  #title-block-header,
  .page-layout-custom > h1 {
    margin-top: 3.5rem;
  }

  body:has(.profile-introduction) #title-block-header {
    margin-top: 4rem;
  }

  .profile-introduction {
    padding-bottom: 3rem;
    font-size: 1.0625rem;
    line-height: 1.875rem;
  }

  .page-layout-custom > h2 {
    margin-top: 3.5rem;
  }

  #quarto-header .navbar {
    padding-inline: 1.25rem;
  }

  .quarto-listing-table,
  .quarto-listing-table tbody,
  .quarto-listing-table tr,
  .quarto-listing-table td {
    display: block;
    width: 100%;
  }

  .quarto-listing-table tr {
    padding-block: 1.25rem;
    border-bottom: 1px solid var(--color-border);
  }

  .quarto-listing-table td {
    padding: 0;
    border: 0;
  }

  .quarto-listing-table td:not(:last-child) {
    padding-right: 0;
  }

  .quarto-listing-table td + td {
    margin-top: 0.35rem;
  }

  .quarto-listing-table td:nth-child(2) {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #quarto-content ul.task-list input[type="checkbox"] {
    transition: none;
  }
}
