:root {
  --pt-aside-expanded: 298px;
  --pt-aside-collapsed: 75px;
  --pt-mobile-header: 54px;
  --pt-mobile-footer: 64px;
  --pt-admin-offset: 0px;
  --pt-accent: #6f8f52;
  --pt-bg: #101310;
  --pt-surface: #151915;
  --pt-surface-2: #1c211c;
  --pt-surface-3: #242a24;
  --pt-text: #f2f0e8;
  --pt-muted: #a7aea5;
  --pt-faint: #727a71;
  --pt-border: #050605;
  --pt-soft-border: #303730;
  --pt-accent-ink: #0f160d;
  --pt-danger: #d98278;
  --pt-shadow: 0 20px 54px rgba(3, 8, 3, 0.38);
  --pt-radius: 14px;
  --pt-ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --pt-bg: #fdfdfd;
  --pt-surface: #eeeee8;
  --pt-surface-2: #e6e8e0;
  --pt-surface-3: #dfe3d9;
  --pt-text: #151815;
  --pt-muted: #5e655d;
  --pt-faint: #7a8178;
  --pt-border: #090b09;
  --pt-soft-border: #ced3c9;
  --pt-accent-ink: #10170d;
  --pt-shadow: 0 20px 54px rgba(34, 43, 33, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--pt-bg);
  overflow-x: clip;
}

html[data-pt-lock="true"],
html[data-pt-lock="true"] body {
  overflow: hidden;
}

body.vallowens-theme {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  background: var(--pt-bg);
  color: var(--pt-text);
  font-family: Aptos, "Segoe UI Variable", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.admin-bar {
  --pt-admin-offset: 32px;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--pt-accent);
  outline-offset: 3px;
}

::selection {
  background: var(--pt-accent);
  color: var(--pt-accent-ink);
}

.screen-reader-text,
.pt-skip-link {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}

.pt-skip-link:focus {
  z-index: 100000;
  top: calc(var(--pt-admin-offset) + 10px);
  left: 10px;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--pt-accent);
  color: var(--pt-accent-ink);
}

.pt-icon-button {
  position: relative;
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--pt-soft-border);
  border-radius: 11px;
  background: var(--pt-surface);
  color: var(--pt-text);
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms var(--pt-ease), background-color 160ms var(--pt-ease), border-color 160ms var(--pt-ease);
}

.pt-icon-button:hover {
  border-color: color-mix(in srgb, var(--pt-accent) 58%, var(--pt-soft-border));
  background: var(--pt-surface-2);
}

.pt-icon-button:active,
.pt-aside-toggle:active,
.pt-user-trigger:active,
.pt-mobile-footer a:active,
.pt-mobile-footer button:active {
  transform: translateY(1px) scale(.98);
}

.pt-icon-button i {
  font-size: 19px;
}

.pt-icon-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  place-items: center;
  border: 2px solid var(--pt-bg);
  border-radius: 9px;
  background: var(--pt-accent);
  color: var(--pt-accent-ink);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.pt-header-avatar,
.pt-user-trigger img,
.pt-account-card img {
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

/* Desktop and tablet aside */
.pt-site-aside {
  position: fixed;
  z-index: 40;
  top: var(--pt-admin-offset);
  bottom: 0;
  left: 0;
  display: grid;
  width: var(--pt-aside-expanded);
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: visible;
  border-right: 1px solid var(--pt-border);
  background: var(--pt-surface);
  transition: width 260ms var(--pt-ease), transform 260ms var(--pt-ease);
}

:root[data-sidebar="collapsed"] .pt-site-aside {
  width: var(--pt-aside-collapsed);
}

.pt-aside-head {
  position: relative;
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 10px 18px;
  border-bottom: 1px solid var(--pt-soft-border);
}

.pt-aside-logo-wrap {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.pt-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--pt-text);
  text-decoration: none;
}

.pt-brand__image {
  display: block;
  width: auto;
  max-width: 190px;
  height: 38px;
  object-fit: contain;
  object-position: left center;
}

.pt-brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid var(--pt-soft-border);
  border-radius: 50%;
  background: var(--pt-surface-2);
  color: var(--pt-accent);
}

.pt-brand__mark i {
  font-size: 22px;
}

.pt-brand__name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-aside-toggle,
.pt-aside-search {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid var(--pt-soft-border);
  border-radius: 10px;
  background: var(--pt-surface-2);
  color: var(--pt-muted);
  cursor: pointer;
  transition: transform 180ms var(--pt-ease), color 180ms var(--pt-ease), background-color 180ms var(--pt-ease);
}

.pt-aside-toggle:hover,
.pt-aside-search:hover {
  background: var(--pt-surface-3);
  color: var(--pt-text);
}

:root[data-sidebar="collapsed"] .pt-aside-head {
  padding-inline: 18px;
}

:root[data-sidebar="collapsed"] .pt-aside-toggle {
  position: absolute;
  inset: 18px auto auto 19px;
  opacity: 0;
  pointer-events: none;
}

:root[data-sidebar="collapsed"] .pt-aside-search {
  display: none;
}

:root[data-sidebar="collapsed"] .pt-aside-head:hover .pt-aside-toggle,
:root[data-sidebar="collapsed"] .pt-aside-head:focus-within .pt-aside-toggle,
:root[data-sidebar="collapsed"] .pt-aside-toggle:focus-visible {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
}

:root[data-sidebar="collapsed"] .pt-aside-head:hover .pt-brand,
:root[data-sidebar="collapsed"] .pt-aside-head:focus-within .pt-brand {
  opacity: .12;
}

.pt-aside-scroll {
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.pt-aside-scroll::-webkit-scrollbar {
  display: none;
}

.pt-primary-nav {
  padding: 14px 12px;
}

.pt-nav-list,
.pt-nav-list ul,
.pt-user-menu-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pt-nav-list a,
.pt-user-menu-list a {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  gap: 13px;
  padding: 9px 12px;
  border-radius: 11px;
  color: var(--pt-muted);
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: color 160ms var(--pt-ease), background-color 160ms var(--pt-ease), transform 160ms var(--pt-ease);
}

.pt-nav-list a:hover,
.pt-nav-list .current-menu-item > a,
.pt-nav-list .current_page_item > a,
.pt-user-menu-list a:hover {
  background: var(--pt-surface-2);
  color: var(--pt-text);
}

.pt-nav-list a:active,
.pt-user-menu-list a:active {
  transform: translateY(1px);
}

.pt-menu-icon {
  width: 22px;
  flex: 0 0 22px;
  color: currentColor;
  font-size: 20px;
  text-align: center;
}

.pt-nav-list a > span,
.pt-nav-list a:not(:has(span)) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-nav-list .sub-menu {
  margin: 3px 0 8px 18px;
  padding-left: 15px;
  border-left: 1px solid var(--pt-soft-border);
}

:root[data-sidebar="collapsed"] .pt-nav-list a {
  justify-content: center;
  padding-inline: 0;
}

:root[data-sidebar="collapsed"] .pt-nav-list .pt-menu-label,
:root[data-sidebar="collapsed"] .pt-nav-list .sub-menu,
:root[data-sidebar="collapsed"] .pt-brand__name,
:root[data-sidebar="collapsed"] .pt-user-trigger__copy,
:root[data-sidebar="collapsed"] .pt-user-trigger__caret {
  display: none;
}

:root[data-sidebar="collapsed"] .pt-aside-logo-wrap,
:root[data-sidebar="collapsed"] .pt-brand {
  min-height: 38px;
}

:root[data-sidebar="collapsed"] .pt-brand__image {
  display: block;
  width: 38px;
  max-width: 38px;
  height: 38px;
  object-fit: contain;
  object-position: center;
}

:root[data-sidebar="collapsed"] .pt-brand__mark {
  display: grid;
}

.pt-aside-user {
  min-width: 0;
  padding: 10px 12px;
  border-top: 1px solid var(--pt-soft-border);
  background: var(--pt-surface);
}

.pt-user-trigger {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 12px;
  background: transparent;
  color: var(--pt-text);
  cursor: pointer;
  text-align: left;
}

.pt-user-trigger:hover,
.pt-user-trigger[aria-expanded="true"] {
  background: var(--pt-surface-2);
}

.pt-user-trigger__avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--pt-soft-border);
  border-radius: 50%;
  color: var(--pt-accent);
}

.pt-user-trigger__avatar i {
  font-size: 27px;
}

.pt-user-trigger__copy {
  display: grid;
  min-width: 0;
}

.pt-user-trigger__copy strong,
.pt-user-trigger__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-user-trigger__copy strong {
  font-size: 14px;
}

.pt-user-trigger__copy small {
  color: var(--pt-muted);
  font-size: 11px;
}

:root[data-sidebar="collapsed"] .pt-aside-user {
  padding-inline: 11px;
}

:root[data-sidebar="collapsed"] .pt-user-trigger {
  display: flex;
  justify-content: center;
  padding: 6px 0;
}

.pt-app-shell {
  min-height: calc(100dvh - var(--pt-admin-offset));
  margin-left: var(--pt-aside-expanded);
  transition: margin-left 260ms var(--pt-ease);
}

:root[data-sidebar="collapsed"] .pt-app-shell {
  margin-left: var(--pt-aside-collapsed);
}

.pt-site-main {
  width: 100%;
  min-width: 0;
  min-height: calc(100dvh - var(--pt-admin-offset));
  overflow-x: clip;
}

.pt-mobile-header,
.pt-mobile-footer {
  display: none;
}

/* Shared popovers */
.pt-popover[hidden],
.pt-dialog-backdrop[hidden],
.pt-mobile-backdrop[hidden] {
  display: none !important;
}

.pt-popover {
  position: fixed;
  z-index: 70;
  border: 1px solid var(--pt-soft-border);
  border-radius: var(--pt-radius);
  background: var(--pt-surface);
  color: var(--pt-text);
  box-shadow: var(--pt-shadow);
}

.pt-user-panel {
  bottom: 14px;
  left: 14px;
  width: min(320px, calc(100vw - 28px));
  padding: 14px;
}

.pt-popover__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pt-popover-close {
  width: 32px;
  height: 32px;
}

.pt-account-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.pt-account-card__avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--pt-soft-border);
  border-radius: 50%;
  color: var(--pt-accent);
}

.pt-account-card__avatar i {
  font-size: 33px;
}

.pt-account-card > span:last-child {
  display: grid;
  min-width: 0;
}

.pt-account-card strong,
.pt-account-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-account-card strong {
  font-size: 15px;
}

.pt-account-card small {
  max-width: 190px;
  color: var(--pt-muted);
  font-size: 12px;
}

.pt-user-links,
.pt-appearance,
.pt-sign-out-link,
.pt-sign-in-link {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--pt-soft-border);
}

.pt-user-links > a,
.pt-user-menu-list a,
.pt-sign-out-link,
.pt-sign-in-link,
.pt-appearance__label,
.pt-theme-options button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border-radius: 10px;
  color: var(--pt-text);
  font-size: 14px;
  text-decoration: none;
}

.pt-user-links > a:hover,
.pt-sign-out-link:hover,
.pt-sign-in-link:hover,
.pt-theme-options button:hover {
  background: var(--pt-surface-2);
}

.pt-user-links i,
.pt-sign-out-link i,
.pt-sign-in-link i,
.pt-appearance i,
.pt-theme-options i {
  width: 20px;
  flex: 0 0 20px;
  font-size: 18px;
  text-align: center;
}

.pt-appearance__label {
  color: var(--pt-muted);
}

.pt-theme-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 4px;
}

.pt-theme-options button {
  position: relative;
  min-width: 0;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--pt-muted);
  cursor: pointer;
  font-size: 11px;
}

.pt-theme-options button[aria-checked="true"] {
  border-color: var(--pt-accent);
  background: color-mix(in srgb, var(--pt-accent) 13%, var(--pt-surface));
  color: var(--pt-text);
}

.pt-theme-options .pt-choice-check {
  position: absolute;
  top: 4px;
  right: 3px;
  display: none;
  color: var(--pt-accent);
  font-size: 12px;
}

.pt-theme-options button[aria-checked="true"] .pt-choice-check {
  display: block;
}

.pt-sign-out-link {
  color: var(--pt-danger);
}

.pt-dialog-backdrop {
  position: fixed;
  z-index: 60;
  inset: var(--pt-admin-offset) 0 0;
  background: rgba(3, 6, 3, .58);
  backdrop-filter: blur(5px);
}

.pt-search-panel {
  z-index: 71;
  top: calc(var(--pt-admin-offset) + clamp(72px, 17vh, 150px));
  left: 50%;
  width: min(680px, calc(100vw - 32px));
  overflow: hidden;
  transform: translateX(-50%);
}

.pt-search-panel__bar {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 11px 13px 11px 17px;
  border-bottom: 1px solid var(--pt-soft-border);
}

.pt-search-panel__bar > i {
  color: var(--pt-muted);
  font-size: 20px;
}

.pt-search-panel__bar form {
  min-width: 0;
}

.pt-search-panel__bar input {
  width: 100%;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pt-text);
  font-size: 18px;
}

.pt-search-panel__bar input::placeholder {
  color: var(--pt-faint);
  opacity: 1;
}

.pt-search-panel__body {
  display: grid;
  gap: 4px;
  max-height: min(430px, 55vh);
  padding: 14px;
  overflow-y: auto;
}

.pt-panel-label {
  margin: 0 0 2px;
  color: var(--pt-muted);
  font-size: 12px;
}

.pt-search-panel__body a {
  display: grid;
  min-height: 44px;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--pt-text);
  text-decoration: none;
}

.pt-search-panel__body a:hover {
  background: var(--pt-surface-2);
}

.pt-search-panel__body a small {
  color: var(--pt-muted);
}

/* Front page */
.pt-front {
  display: grid;
  min-height: calc(100dvh - var(--pt-admin-offset));
  place-items: center;
  padding: 64px clamp(24px, 7vw, 96px);
}

.pt-front__inner {
  width: min(720px, 100%);
  transform: translateY(-4vh);
}

.pt-front__label,
.pt-page-header > p,
.pt-post-card__body > p {
  margin: 0 0 8px;
  color: var(--pt-muted);
  font-size: 13px;
}

.pt-front h1 {
  max-width: 650px;
  margin: 0;
  color: var(--pt-text);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 620;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.pt-front-search {
  display: grid;
  width: min(560px, 100%);
  min-height: 48px;
  grid-template-columns: 22px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 4px 5px 4px 15px;
  border: 1px solid var(--pt-soft-border);
  border-radius: var(--pt-radius);
  background: var(--pt-surface);
}

.pt-front-search > i {
  color: var(--pt-muted);
}

.pt-front-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.pt-front-search input::placeholder {
  color: var(--pt-faint);
  opacity: 1;
}

.pt-front-search button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--pt-accent);
  color: var(--pt-accent-ink);
  cursor: pointer;
}

.pt-front-content,
.pt-content-frame {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.pt-front-content {
  padding-bottom: 80px;
}

/* Standard content */
.pt-content-frame {
  padding-block: clamp(48px, 8vw, 96px);
}

.pt-page-header {
  max-width: 780px;
  margin-bottom: 36px;
}

.pt-page-header h1,
.pt-entry-content h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.pt-entry-content,
.pt-comments,
.pt-entry-footer,
.pt-singular .post-navigation {
  max-width: 760px;
}

.pt-entry-content {
  font-size: 17px;
}

.pt-entry-content > * {
  max-width: 100%;
}

.pt-entry-content > * + * {
  margin-top: 1.25em;
}

.pt-entry-content a,
.pt-archive-description a {
  color: var(--pt-accent);
}

.pt-entry-content blockquote {
  margin-left: 0;
  padding-left: 20px;
  border-left: 3px solid var(--pt-accent);
  color: var(--pt-muted);
}

.pt-entry-content pre,
.pt-entry-content code {
  border-radius: 8px;
  background: var(--pt-surface-2);
}

.pt-entry-content pre {
  padding: 16px;
  overflow: auto;
}

.pt-featured-image {
  margin: 0 0 32px;
  overflow: hidden;
  border-radius: var(--pt-radius);
}

.pt-featured-image img {
  display: block;
  width: 100%;
}

.pt-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.pt-post-card {
  min-width: 0;
}

.pt-post-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--pt-radius);
  background: var(--pt-surface-2);
  text-decoration: none;
}

.pt-post-card__media img,
.pt-post-card__media > span {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  object-fit: cover;
  transition: transform 300ms var(--pt-ease);
}

.pt-post-card:hover .pt-post-card__media img {
  transform: scale(1.025);
}

.pt-post-card__media i {
  color: var(--pt-accent);
  font-size: 34px;
}

.pt-post-card__body {
  padding: 16px 3px 0;
}

.pt-post-card h2 {
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.18;
}

.pt-post-card h2 a {
  text-decoration: none;
}

.pt-post-card__body > div {
  color: var(--pt-muted);
}

.pt-post-card__body > div > p {
  margin-bottom: 0;
}

.navigation.pagination,
.post-navigation {
  grid-column: 1 / -1;
  margin-top: 24px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-numbers,
.post-navigation a {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--pt-soft-border);
  border-radius: 10px;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.post-navigation a:hover {
  border-color: var(--pt-accent);
  background: var(--pt-surface-2);
}

.pt-empty-state {
  display: grid;
  min-height: calc(100dvh - var(--pt-admin-offset));
  place-content: center;
  justify-items: start;
  padding: 32px;
}

.pt-empty-state--inline {
  min-height: 360px;
  grid-column: 1 / -1;
}

.pt-empty-state > i {
  color: var(--pt-accent);
  font-size: 38px;
}

.pt-empty-state p {
  margin: 14px 0 3px;
  color: var(--pt-muted);
}

.pt-empty-state h1,
.pt-empty-state h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 5vw, 50px);
  letter-spacing: -.035em;
}

.pt-empty-state > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--pt-soft-border);
  border-radius: 10px;
  text-decoration: none;
}

.pt-comments {
  margin: 44px auto 80px;
  padding-top: 24px;
  border-top: 1px solid var(--pt-soft-border);
}

.comment-list {
  padding-left: 0;
  list-style: none;
}

.comment-list .comment {
  margin-top: 20px;
}

.comment-list .children {
  margin-left: 24px;
  padding-left: 16px;
  border-left: 1px solid var(--pt-soft-border);
  list-style: none;
}

.comment-form input:not([type="submit"]),
.comment-form textarea,
.pt-search-form input,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.buddypress-wrap input[type="text"],
.buddypress-wrap input[type="email"],
.buddypress-wrap input[type="password"],
.buddypress-wrap textarea,
.buddypress-wrap select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--pt-soft-border);
  border-radius: 10px;
  outline: 0;
  background: var(--pt-surface);
  color: var(--pt-text);
}

.comment-form input:focus,
.comment-form textarea:focus,
.pt-search-form input:focus,
.woocommerce form .form-row input.input-text:focus,
.buddypress-wrap input:focus,
.buddypress-wrap textarea:focus,
.buddypress-wrap select:focus {
  border-color: var(--pt-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pt-accent) 24%, transparent);
}

.form-submit input,
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button,
.buddypress-wrap .button,
.buddypress-wrap button,
.buddypress-wrap input[type="submit"] {
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--pt-accent);
  border-radius: 10px;
  background: var(--pt-accent);
  color: var(--pt-accent-ink);
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
}

/* WooCommerce */
.pt-commerce-frame .woocommerce {
  color: var(--pt-text);
}

.woocommerce .woocommerce-breadcrumb,
.woocommerce .woocommerce-result-count {
  color: var(--pt-muted);
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
}

.woocommerce ul.products li.product a img,
.woocommerce div.product div.images img {
  border-radius: var(--pt-radius);
  background: var(--pt-surface-2);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--pt-text);
  font-size: 17px;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--pt-accent);
}

.woocommerce .quantity .qty {
  min-height: 42px;
  border: 1px solid var(--pt-soft-border);
  border-radius: 10px;
  background: var(--pt-surface);
  color: var(--pt-text);
}

.woocommerce table.shop_table {
  border-color: var(--pt-soft-border);
  border-radius: var(--pt-radius);
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
  border-color: var(--pt-soft-border);
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--pt-accent);
  border-radius: 10px;
  background: var(--pt-surface-2);
  color: var(--pt-text);
}

/* BuddyPress */
.buddypress-wrap {
  color: var(--pt-text);
}

.buddypress-wrap .bp-navs,
.buddypress-wrap .subnav-filters,
.buddypress-wrap .item-body,
.buddypress-wrap .activity-list .activity-item,
.buddypress-wrap .members-list li,
.buddypress-wrap .groups-list li {
  border-color: var(--pt-soft-border);
  background: transparent;
  box-shadow: none;
}

.buddypress-wrap .bp-navs ul,
.buddypress-wrap .item-list-tabs ul {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.buddypress-wrap .bp-navs ul::-webkit-scrollbar,
.buddypress-wrap .item-list-tabs ul::-webkit-scrollbar {
  display: none;
}

.buddypress-wrap .bp-navs li a,
.buddypress-wrap .item-list-tabs li a {
  border-radius: 9px;
  color: var(--pt-muted);
  white-space: nowrap;
}

.buddypress-wrap .bp-navs li.current a,
.buddypress-wrap .bp-navs li.selected a,
.buddypress-wrap .item-list-tabs li.current a,
.buddypress-wrap .item-list-tabs li.selected a {
  background: var(--pt-surface-2);
  color: var(--pt-text);
}

.buddypress-wrap .item-avatar img,
#buddypress .avatar {
  border-radius: 50%;
}

@media (max-width: 1100px) {
  .woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pt-front {
    padding-inline: 48px;
  }
}

/* Mobile shell */
@media (max-width: 767px) {
  body.admin-bar {
    --pt-admin-offset: 46px;
  }

  #wpadminbar {
    position: fixed;
  }

  .pt-site-aside {
    z-index: 56;
    top: calc(var(--pt-admin-offset) + var(--pt-mobile-header));
    bottom: calc(var(--pt-mobile-footer) + env(safe-area-inset-bottom));
    width: min(298px, calc(100vw - 42px));
    transform: translateX(-102%);
    box-shadow: var(--pt-shadow);
  }

  :root[data-sidebar="collapsed"] .pt-site-aside {
    width: min(298px, calc(100vw - 42px));
  }

  :root[data-mobile-menu="open"] .pt-site-aside {
    transform: translateX(0);
  }

  .pt-aside-head {
    display: none;
  }

  .pt-mobile-backdrop {
    position: fixed;
    z-index: 55;
    inset: calc(var(--pt-admin-offset) + var(--pt-mobile-header)) 0 calc(var(--pt-mobile-footer) + env(safe-area-inset-bottom));
    background: rgba(3, 6, 3, .62);
  }

  .pt-primary-nav {
    padding: 12px;
  }

  :root[data-sidebar="collapsed"] .pt-nav-list a {
    justify-content: flex-start;
    padding-inline: 12px;
  }

  :root[data-sidebar="collapsed"] .pt-nav-list .pt-menu-label,
  :root[data-sidebar="collapsed"] .pt-user-trigger__copy,
  :root[data-sidebar="collapsed"] .pt-user-trigger__caret {
    display: initial;
  }

  :root[data-sidebar="collapsed"] .pt-aside-user {
    padding-inline: 12px;
  }

  :root[data-sidebar="collapsed"] .pt-user-trigger {
    display: grid;
    justify-content: initial;
    padding: 6px;
  }

  .pt-app-shell,
  :root[data-sidebar="collapsed"] .pt-app-shell {
    min-height: 100dvh;
    margin-left: 0;
    padding-top: calc(var(--pt-admin-offset) + var(--pt-mobile-header));
    padding-bottom: calc(var(--pt-mobile-footer) + env(safe-area-inset-bottom));
  }

  .pt-site-main {
    min-height: calc(100dvh - var(--pt-admin-offset) - var(--pt-mobile-header) - var(--pt-mobile-footer) - env(safe-area-inset-bottom));
  }

  .pt-mobile-header {
    position: fixed;
    z-index: 57;
    top: var(--pt-admin-offset);
    right: 0;
    left: 0;
    display: grid;
    min-height: var(--pt-mobile-header);
    grid-template-columns: 36px minmax(28px, auto) minmax(54px, 1fr) repeat(6, 30px);
    align-items: center;
    gap: 3px;
    padding: 7px max(6px, env(safe-area-inset-left)) 7px max(6px, env(safe-area-inset-right));
    border-bottom: 1px solid var(--pt-border);
    background: color-mix(in srgb, var(--pt-surface) 94%, transparent);
    backdrop-filter: blur(14px);
  }

  .pt-mobile-header .pt-icon-button {
    width: 30px;
    height: 38px;
    border-color: transparent;
    background: transparent;
  }

  .pt-mobile-header .pt-mobile-menu-toggle {
    width: 36px;
  }

  .pt-mobile-header .pt-icon-button:hover {
    border-color: var(--pt-soft-border);
    background: var(--pt-surface-2);
  }

  .pt-mobile-header .pt-icon-button i {
    font-size: 18px;
  }

  .pt-mobile-logo {
    min-width: 28px;
    overflow: hidden;
  }

  .pt-brand--mobile .pt-brand__image {
    max-width: 64px;
    height: 30px;
  }

  .pt-brand--mobile .pt-brand__mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .pt-brand--mobile .pt-brand__mark i {
    font-size: 18px;
  }

  .pt-brand--mobile .pt-brand__name {
    display: none;
  }

  .pt-timer {
    display: flex;
    min-width: 0;
    justify-content: center;
    color: var(--pt-muted);
    font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
    font-size: clamp(7px, 2.2vw, 10px);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.04em;
    white-space: nowrap;
  }

  .pt-timer b {
    margin-inline: 1px;
    color: var(--pt-faint);
    font-weight: 400;
  }

  .pt-header-avatar {
    width: 26px;
    height: 26px;
  }

  .pt-menu-close-icon {
    display: none;
  }

  :root[data-mobile-menu="open"] .pt-menu-open-icon {
    display: none;
  }

  :root[data-mobile-menu="open"] .pt-menu-close-icon {
    display: inline-block;
  }

  .pt-mobile-footer {
    position: fixed;
    z-index: 57;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: calc(var(--pt-mobile-footer) + env(safe-area-inset-bottom));
    grid-template-columns: repeat(5, 1fr);
    align-items: start;
    padding: 7px max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
    border-top: 1px solid var(--pt-border);
    background: color-mix(in srgb, var(--pt-surface) 96%, transparent);
    backdrop-filter: blur(14px);
  }

  .pt-mobile-footer a,
  .pt-mobile-footer button {
    display: grid;
    min-width: 0;
    min-height: 50px;
    place-items: center;
    align-content: center;
    gap: 1px;
    padding: 2px;
    border-radius: 10px;
    background: transparent;
    color: var(--pt-muted);
    cursor: pointer;
    font-size: 10px;
    line-height: 1.1;
    text-decoration: none;
  }

  .pt-mobile-footer a:hover,
  .pt-mobile-footer button:hover {
    background: var(--pt-surface-2);
    color: var(--pt-text);
  }

  .pt-mobile-footer i {
    font-size: 21px;
  }

  .pt-mobile-footer .pt-globe-button {
    position: relative;
    width: 52px;
    height: 52px;
    min-height: 52px;
    justify-self: center;
    margin-top: -17px;
    border: 1px solid var(--pt-accent);
    border-radius: 50%;
    background: var(--pt-surface-2);
    color: var(--pt-accent);
    box-shadow: 0 0 0 5px var(--pt-surface);
  }

  .pt-mobile-footer .pt-globe-button i {
    font-size: 27px;
    animation: pt-globe-spin 10s linear infinite;
  }

  .pt-user-panel {
    z-index: 72;
    right: 10px;
    bottom: calc(var(--pt-mobile-footer) + env(safe-area-inset-bottom) + 10px);
    left: auto;
    width: min(320px, calc(100vw - 20px));
    max-height: calc(100dvh - var(--pt-admin-offset) - var(--pt-mobile-header) - var(--pt-mobile-footer) - 20px);
    overflow-y: auto;
  }

  .pt-dialog-backdrop {
    inset: calc(var(--pt-admin-offset) + var(--pt-mobile-header)) 0 calc(var(--pt-mobile-footer) + env(safe-area-inset-bottom));
  }

  .pt-search-panel {
    top: calc(var(--pt-admin-offset) + var(--pt-mobile-header) + 10px);
    width: calc(100vw - 20px);
  }

  .pt-search-panel__bar input {
    font-size: 16px;
  }

  .pt-front {
    min-height: calc(100dvh - var(--pt-admin-offset) - var(--pt-mobile-header) - var(--pt-mobile-footer) - env(safe-area-inset-bottom));
    place-items: start stretch;
    padding: clamp(58px, 16vh, 118px) 18px 38px;
  }

  .pt-front__inner {
    transform: none;
  }

  .pt-front h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .pt-front-search {
    margin-top: 20px;
  }

  .pt-front-content,
  .pt-content-frame {
    width: min(100% - 32px, 760px);
  }

  .pt-content-frame {
    padding-block: 40px;
  }

  .pt-post-grid,
  .woocommerce ul.products {
    grid-template-columns: minmax(0, 1fr);
  }

  .pt-page-header h1,
  .pt-entry-content h1 {
    font-size: clamp(28px, 9vw, 42px);
  }

  .pt-entry-content {
    font-size: 16px;
  }

  .pt-comments {
    width: calc(100% - 32px);
  }
}

@media (max-width: 400px) {
  .pt-mobile-header {
    grid-template-columns: 32px 28px minmax(48px, 1fr) repeat(6, 27px);
    gap: 1px;
    padding-inline: 3px;
  }

  .pt-mobile-header .pt-icon-button {
    width: 27px;
  }

  .pt-mobile-header .pt-mobile-menu-toggle {
    width: 32px;
  }

  .pt-mobile-header .pt-icon-button i {
    font-size: 17px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  :root[data-sidebar="collapsed"] .pt-aside-toggle {
    left: auto;
    right: -17px;
    opacity: 1;
    pointer-events: auto;
  }
}

@keyframes pt-globe-spin {
  to {
    transform: rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .pt-mobile-header,
  .pt-mobile-footer,
  .pt-dialog-backdrop {
    backdrop-filter: none;
  }
}
