/* ==========================================================================
   Zensical portfolio theme
   --------------------------------------------------------------------------
   This stylesheet ports the visual language of the previous Tailwind site to
   the Zensical (Material for MkDocs derived) theme. The class names use a
   `pf-` prefix so they never collide with Material's `md-` classes.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fonts (vendored in zensical/static/fonts, copied by the build)
   -------------------------------------------------------------------------- */

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ubuntu-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Ubuntu";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ubuntu-latin-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/ubuntu-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/ubuntu-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/roboto-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/roboto-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/roboto-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../assets/fonts/roboto-latin-900-normal.woff2") format("woff2");
}

/* --------------------------------------------------------------------------
   Theme variables
   -------------------------------------------------------------------------- */

:root {
  --pf-primary: #3730a3;
  --pf-primary-light: #4f46e5;
  --pf-primary-dark: #312e81;
  --pf-heading-font: "Roboto", ui-sans-serif, system-ui, sans-serif;
  --pf-prose-font: "Ubuntu", ui-sans-serif, system-ui, sans-serif;
  --pf-content-width: 1024px;
  --pf-page-width: 1440px;
  --pf-card-radius: 0.5rem;
}

[data-md-color-scheme="default"] {
  --md-primary-fg-color: #3730a3;
  --md-primary-fg-color--light: #4f46e5;
  --md-primary-fg-color--dark: #312e81;
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: #4f46e5;
  --md-default-bg-color: #ffffff;
  --pf-page-bg: #f8fafc;
  --pf-card-bg: #ffffff;
  --pf-card-border: #e2e8f0;
  --pf-muted: #64748b;
  --pf-text: #0f172a;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #1e293b;
  --md-primary-fg-color--light: #334155;
  --md-primary-fg-color--dark: #0f172a;
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: #818cf8;
  --md-default-bg-color: #030712;
  --pf-page-bg: #030712;
  --pf-card-bg: #0f172a;
  --pf-card-border: #1e293b;
  --pf-muted: #94a3b8;
  --pf-text: #e2e8f0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--pf-prose-font);
  background-color: var(--pf-page-bg);
}

h1,
h2,
h3,
h4,
h5,
h6,
.pf-heading {
  font-family: var(--pf-heading-font);
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.md-header {
  height: auto;
  min-height: 3.5rem;
  background-color: var(--md-primary-fg-color);
  color: hsla(225deg, 15%, 90%, 0.82);
  /* The header background is always a saturated brand colour, so use the
     dark-mode foreground/search treatment in light mode as well. */
  --md-default-fg-color: hsla(225deg, 15%, 90%, 0.82);
  --md-default-fg-color--light: hsla(225deg, 15%, 90%, 0.56);
  --md-default-fg-color--lighter: hsla(225deg, 15%, 90%, 0.32);
  --md-default-fg-color--lightest: hsla(225deg, 15%, 90%, 0.12);
  --md-default-bg-color: #030712;
  --md-default-bg-color--light: hsla(225deg, 15%, 5%, 0.54);
  --md-default-bg-color--lighter: hsla(225deg, 15%, 5%, 0.26);
  --md-default-bg-color--lightest: hsla(225deg, 15%, 5%, 0.07);
}

.md-header__inner {
  min-height: 3.5rem;
  max-width: var(--pf-page-width);
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 2rem;
  width: auto;
}

.md-header__title {
  font-family: var(--pf-heading-font);
  font-weight: 700;
  color: #ffffff;
}

.pf-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
  margin-right: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.pf-nav::-webkit-scrollbar {
  display: none;
}

.pf-nav__link {
  color: #ffffff;
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  font-family: var(--pf-prose-font);
  font-size: 1.05rem;
  white-space: nowrap;
  transition: background-color 120ms ease-in-out;
}

.pf-nav__link:hover,
.pf-nav__link--active {
  background-color: rgb(0 0 0 / 20%);
}

.pf-alternate {
  display: inline-flex;
  align-items: center;
}

.pf-lang-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.4rem;
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 15%);
  color: #ffffff;
  font-family: var(--pf-heading-font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

@media screen and (max-width: 76.1875em) {
  .md-header__title {
    margin-left: 0.2rem;
  }

  .pf-nav__link {
    padding: 0.55rem 0.6rem;
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 44em) {
  .md-header__title {
    display: none;
  }

  .md-header__button.md-logo {
    display: inline-block;
  }

  .pf-nav {
    margin-left: auto;
    margin-right: 0.25rem;
  }

  .pf-nav__link {
    padding: 0.45rem 0.5rem;
    font-size: 0.9rem;
  }
}

/* --------------------------------------------------------------------------
   Layout: remove the documentation sidebars and let pages use their own width
   -------------------------------------------------------------------------- */

.md-main__inner {
  display: block;
  max-width: none;
  margin: 0;
}

.md-content,
.md-content__inner {
  max-width: none;
  margin: 0;
  padding: 0;
}

.md-main {
  background-color: var(--pf-page-bg);
}

/* --------------------------------------------------------------------------
   Shared page scaffold
   -------------------------------------------------------------------------- */

.pf-page,
.pf-article {
  width: 100%;
}

.pf-page {
  max-width: var(--pf-page-width);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.pf-page__header {
  margin: 4rem auto 0;
  width: 100%;
  max-width: var(--pf-content-width);
}

.pf-page__header h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--pf-text);
}

.pf-page__header p {
  margin: 0.75rem 0 0;
  max-width: 48rem;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.4;
  color: var(--pf-muted);
}

.pf-rule {
  width: 2.5rem;
  height: 2px;
  margin: 2rem 0;
  background-color: var(--pf-text);
}

.pf-year {
  width: 100%;
  max-width: var(--pf-page-width);
  margin: 0 auto 1.5rem;
}

.pf-year h2 {
  margin: 1rem 0 0.75rem;
  font-size: 1.3rem;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Card grid (blog and project indexes, spotlights)
   -------------------------------------------------------------------------- */

.pf-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.pf-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 384px;
  overflow: hidden;
  border: 1px solid var(--pf-card-border);
  border-radius: var(--pf-card-radius);
  background-color: var(--pf-card-bg);
  box-shadow: 0 4px 14px rgb(15 23 42 / 8%);
  color: inherit;
  transition: background-color 160ms ease-in-out;
}

.pf-card:hover {
  background-color: rgb(241 245 249);
}

[data-md-color-scheme="slate"] .pf-card:hover {
  background-color: #111c31;
}

.pf-card--wide {
  max-width: none;
}

.pf-card__media {
  position: relative;
  width: 100%;
  overflow: clip;
  border-radius: var(--pf-card-radius);
  aspect-ratio: 16 / 9;
  background: var(--pf-primary);
}

.pf-card__media--empty {
  background: linear-gradient(135deg, var(--pf-primary), var(--pf-primary-dark));
}

.pf-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease-in-out;
}

.pf-card:hover .pf-card__image {
  transform: scale(1.08);
}

.pf-card__overlay {
  position: absolute;
  inset: 0;
  background: rgb(55 48 163 / 30%);
  opacity: 0;
  transition: opacity 200ms ease-in-out;
  pointer-events: none;
}

[data-md-color-scheme="slate"] .pf-card__overlay {
  background: rgb(0 0 0 / 50%);
}

.pf-card:hover .pf-card__overlay {
  opacity: 1;
}

.pf-card__copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 0.75rem;
  color: #ffffff;
  text-shadow: 0 1px 3px rgb(0 0 0 / 75%);
}

.pf-section h2.pf-card__title {
	margin: 0;
	font-family: var(--pf-heading-font);
	font-weight: 900;
	font-size: 1.4rem;
	line-height: 1.15;
	overflow-wrap: anywhere;

}

.pf-card__description {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  font-size: 0.95rem;
  opacity: 0;
  transition: max-height 250ms ease, opacity 250ms ease;
}

.pf-card:hover .pf-card__description {
  max-height: 12rem;
  opacity: 1;
}

.pf-card__corner {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: 0.15rem;
  color: #ffffff;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.pf-card__corner--left {
  top: 0;
  left: 0;
}

.pf-card__corner--right {
  top: 0;
  right: 0;
}

.pf-card:hover .pf-card__corner {
  opacity: 0;
}

.pf-card__badge {
  padding: 0.35rem 0.45rem;
  font-size: 0.8rem;
  line-height: 1;
  color: #ffffff;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / 30%));
}

.pf-card__languages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.4rem;
}

.pf-card__language {
  padding: 0.15rem 0.4rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 35%);
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Touch devices have no hover state: stack the copy below the image. */
@media (pointer: none), (pointer: coarse) {
  .pf-card__copy {
    position: static;
    padding: 0.75rem;
    color: var(--pf-text);
    text-shadow: none;
  }

  .pf-card__description {
    max-height: none;
    opacity: 1;
    padding-top: 0.4rem;
  }

  .pf-card__overlay {
    display: none;
  }

  .pf-card__corner {
    opacity: 1;
  }
}

@media screen and (max-width: 30em) {
  .pf-card {
    max-width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Landing page
   -------------------------------------------------------------------------- */

.pf-home {
  width: 100%;
}

.pf-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 6rem 1rem 3rem;
  background-color: var(--pf-primary-dark);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  text-align: center;
}

.pf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(2 6 23 / 25%), rgb(2 6 23 / 45%));
  pointer-events: none;
}

.pf-hero > * {
  position: relative;
  z-index: 1;
}

.pf-hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

@media (min-width: 64em) {
  .pf-hero__brand {
    flex-direction: row;
    gap: 2rem;
  }
}

.pf-hero__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background-color: var(--pf-primary);
}

.pf-hero__logo img {
  width: 6rem;
  height: 6rem;
}

.pf-hero__name {
  margin: 0;
  font-family: var(--pf-heading-font);
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.pf-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pf-social {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background-color 120ms ease-in-out;
}

.pf-social:hover {
  background-color: rgb(255 255 255 / 10%);
}

.pf-social__tooltip {
  position: absolute;
  right: 50%;
  bottom: calc(100% + 0.5rem);
  z-index: 20;
  width: max-content;
  max-width: 18rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgb(0 0 0 / 70%);
  color: #ffffff;
  font-size: 0.8rem;
  line-height: 1.3;
  opacity: 0;
  transform: translateX(50%) translateY(0.25rem);
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.pf-social:hover .pf-social__tooltip,
.pf-social[data-success] .pf-social__tooltip {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}

.pf-quicklinks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
  max-width: 62rem;
  margin-top: 2rem;
  padding: 0 0.5rem;
}

@media (min-width: 48em) {
  .pf-quicklinks {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pf-quicklink {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 2px solid rgb(255 255 255 / 20%);
  border-radius: 0.5rem;
  background: rgb(0 0 0 / 10%);
  color: #ffffff;
  backdrop-filter: blur(10px);
  transition: background-color 150ms ease, border-color 150ms ease;
}

.pf-quicklink:hover {
  border-color: rgb(255 255 255 / 50%);
  background: rgb(255 255 255 / 10%);
}

.pf-quicklink__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--pf-heading-font);
  font-size: 1.6rem;
  font-weight: 500;
}

.pf-quicklink__chevron {
  margin-left: auto;
  font-size: 1.5rem;
  transition: transform 150ms ease;
}

.pf-quicklink:hover .pf-quicklink__chevron {
  transform: translateX(0.25rem);
}

.pf-quicklink__text {
  margin: 0;
  font-size: 1rem;
  color: rgb(255 255 255 / 80%);
	text-align: start;
}

.pf-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 3rem;
  color: #ffffff;
  font-size: 0.8rem;
  animation: pf-bounce 1.4s infinite;
}

@keyframes pf-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(0.4rem);
  }
}

.pf-section {
  max-width: var(--pf-page-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--pf-text);
}

.pf-section__inner {
  width: 100%;
  max-width: var(--pf-content-width);
	display: flex;
	flex-direction: column;
}

.pf-section h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 500;
}

.pf-section .pf-rule {
  margin: 1.5rem 0;
}

.pf-section__lead {
  max-width: 48rem;
  margin: 0 0 2rem;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--pf-muted);
}

.pf-about p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--pf-muted);
}

.pf-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 48em) {
  .pf-spotlight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pf-spotlight-grid .pf-card {
  max-width: none;
}

.pf-link-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  background: rgb(71 85 105);
  color: #ffffff;
  transition: background-color 150ms ease;
}

.pf-link-card h2 {
	font-size: 1rem;
}

.pf-link-card:hover {
  background: var(--pf-primary);
}

.pf-link-card__heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-family: var(--pf-heading-font);
  font-size: 1.5rem;
  font-weight: 500;
}

.pf-link-card__chevron {
  margin-left: auto;
  transition: transform 150ms ease;
}

.pf-link-card:hover .pf-link-card__chevron {
  transform: translateX(0.25rem);
}

.pf-link-card__text {
  margin: 0;
  color: rgb(255 255 255 / 80%);
}

/* --------------------------------------------------------------------------
   Article (blog post and project) headers
   -------------------------------------------------------------------------- */

.pf-article__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 14rem;
  padding: 6rem 1.25rem 2rem;
  background-color: var(--pf-primary);
  background-position: center;
  background-size: cover;
  color: #ffffff;
}

[data-md-color-scheme="slate"] .pf-article__header {
  background-color: #1e293b;
}

.pf-article__header-inner {
  width: 100%;
  max-width: var(--pf-content-width);
}

.pf-article__header h1 {
  margin: 0;
  font-family: var(--pf-heading-font);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: #ffffff;
}

.pf-article__description {
  margin: 0.25rem 0 0;
  font-family: var(--pf-heading-font);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-style: italic;
  color: rgb(255 255 255 / 90%);
}

.pf-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  font-size: 1rem;
  color: rgb(255 255 255 / 90%);
}

.pf-article__meta-icon {
  font-size: 1.4rem;
	height: 32px;
}

.pf-article__meta-small {
  font-size: 0.75rem;
  color: rgb(255 255 255 / 70%);
}

.pf-article__meta-spacer {
  flex: 1;
}

.pf-article__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
}

.pf-article__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgb(255 255 255 / 40%);
  border-radius: 0.5rem;
  color: #ffffff;
  font-size: 0.95rem;
  transition: background-color 100ms ease, color 100ms ease;
}

.pf-article__link:hover {
  border-color: transparent;
  background: #ffffff;
  color: var(--pf-primary);
}

.pf-article__body {
  width: 100%;
  max-width: var(--pf-content-width);
  margin: 2.5rem auto 0;
  padding: 0 0.25rem;
}




.pf-article__body.md-typeset p code,
.pf-article__body.md-typeset li code {
  padding: 0.1rem 0.35rem;
  border-radius: 0.35rem;
  background: rgb(148 163 184 / 25%);
  overflow-wrap: anywhere;
}

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

.pf-article__body.md-typeset a:hover {
  color: var(--pf-primary-light);
}

.pf-article__body.md-typeset .arithmatex {
  max-width: 100%;
  overflow-x: auto;
}

/* Fallback notice for untranslated pages */
.pf-fallback {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: var(--pf-content-width);
  margin: 1.5rem auto;
  padding: 0.9rem 1rem;
  border: 1px solid #facc15;
  border-radius: 0.5rem;
  background: #fef9c3;
  color: #854d0e;
}

[data-md-color-scheme="slate"] .pf-fallback {
  border-color: #7c2d12;
  background: #431407;
  color: #fdba74;
}

.pf-fallback p {
  margin: 0;
}

.pf-fallback a {
  align-self: flex-start;
  padding: 0.45rem 0.7rem;
  border-radius: 0.5rem;
  background: rgb(234 179 8 / 30%);
  color: inherit;
  text-decoration: none;
}

.pf-fallback a:hover {
  background: rgb(234 179 8 / 50%);
}

/* --------------------------------------------------------------------------
   YouTube embed consent UI (outer element styled with Tailwind)
   -------------------------------------------------------------------------- */

.pf-youtube__consent {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  height: 100%;
  padding: 1rem;
  background: rgb(15 23 42 / 75%);
  color: #ffffff;
  backdrop-filter: blur(6px);
}

.pf-youtube__consent p {
  margin: 0;
}

.pf-youtube__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pf-youtube__actions button,
.pf-consent-button {
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 0.5rem;
  background: rgb(203 213 225 / 25%);
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.pf-youtube__actions button:hover,
.pf-consent-button:hover {
  background: var(--pf-primary-light);
}

youtube-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   Comments
   -------------------------------------------------------------------------- */

.pf-comments {
  width: 100%;
  max-width: var(--pf-content-width);
  margin: 3rem auto 1rem;
  padding: 0 0.25rem;
}

.pf-comments__consent {
  padding: 1rem;
  border: 1px solid var(--pf-card-border);
  border-radius: 0.5rem;
  background: var(--pf-card-bg);
  color: var(--pf-text);
}

.pf-comments__consent p {
  margin: 0.35rem 0;
}

/* --------------------------------------------------------------------------
   Privacy settings
   -------------------------------------------------------------------------- */

.pf-privacy {
  max-width: var(--pf-content-width);
  margin: 0 auto;
  padding: 4rem 1.25rem 2rem;
}

.pf-privacy__cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.privacy-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 16rem;
  padding: 0.9rem;
  border: 1px solid var(--pf-card-border);
  border-radius: 0.5rem;
  background: var(--pf-card-bg);
}

.privacy-selector__title {
  margin: 0 0 0.75rem;
  font-size: 1.4rem;
  text-align: center;
}

.privacy-selector button {
  padding: 0.5rem;
  border: 1px solid var(--pf-card-border);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--pf-text);
  font: inherit;
  cursor: pointer;
}

.privacy-selector button:hover {
  background: rgb(79 70 229 / 15%);
}

.privacy-selector button[data-active] {
  background: var(--pf-primary);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Technology page
   -------------------------------------------------------------------------- */

.pf-technology {
  max-width: var(--pf-content-width);
  margin: 0 auto;
  padding: 4rem 1.25rem 2rem;
}

.pf-technology h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.pf-deps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.5rem 0 3rem;
}

.pf-deps .pf-dep {
  display: inline-flex;
  overflow: hidden;
  border-radius: 0.5rem;
  color: #ffffff;
  font-size: 0.85rem;
	text-decoration: none;
}

.pf-dep__name,
.pf-dep__version {
  padding: 0.25rem 0.45rem;
  transition: background-color 150ms ease;
}

.pf-dep__name {
  background: #475569;
}

.pf-dep__version {
  background: #94a3b8;
}

.pf-dep:hover .pf-dep__name {
  background: var(--pf-primary);
}

.pf-dep:hover .pf-dep__version {
  background: rgb(79 70 229 / 70%);
}

.pf-dep__dev {
  opacity: 0.5;
  font-size: 0.65rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.pf-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 2rem 1rem;
  background: var(--pf-primary);
  color: #ffffff;
  text-align: center;
}

[data-md-color-scheme="slate"] .pf-footer {
  background: #1e293b;
}

.pf-footer p {
  margin: 0;
}

.pf-footer a {
  color: #ffffff;
  text-decoration: underline;
}

.pf-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
}

.pf-footer__link {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 10%);
  text-decoration: none !important;
}

.pf-footer__link:hover {
  background: rgb(255 255 255 / 30%);
}

/* --------------------------------------------------------------------------
   Search dialog tweaks
   -------------------------------------------------------------------------- */

.md-search__form {
  border-radius: 0.5rem;
  background: rgb(0 0 0 / 15%);
}

.md-search__form:hover {
  background: rgb(0 0 0 / 25%);
}
