/* Components */

.px-section {
  margin-top: clamp(2.2rem, 5vw, 5.2rem);
}

.px-section__head {
  margin-bottom: 1.15rem;
}

.px-section__head h1,
.px-section__head h2 {
  font-size: clamp(1.65rem, 4.2vw, 3rem);
}

.px-section__head--page h1 {
  font-size: clamp(1.4rem, 3.4vw, 2.35rem);
}

.px-section__head--inline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.px-grid {
  display: grid;
  gap: 1rem;
}

.px-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.px-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.px-card {
  border: 1px solid var(--px-border);
  border-radius: var(--px-r-md);
  background-color: var(--px-surface-0);
  background-image: none;
  box-shadow: var(--px-shadow-card);
  padding: clamp(1rem, 2.2vw, 1.5rem);
  display: grid;
  gap: 0.72rem;
}

.px-card h3 {
  font-size: 1.18rem;
}

.px-card p {
  color: rgba(255, 255, 255, 0.82);
}

.px-card--glass {
  background-color: var(--px-surface-1);
  background-image: none;
}

.px-card--danger {
  border-color: rgba(255, 0, 195, 0.34);
  background-color: rgba(48, 10, 58, 0.92);
  background-image: none;
}

.px-card--content > :first-child {
  margin-top: 0;
}

.px-card--content > :last-child {
  margin-bottom: 0;
}

.px-post-card__title {
  margin-bottom: 0.2rem;
}

.px-post-card__title a:hover {
  color: var(--px-cyan);
}

.px-meta {
  font-size: 0.84rem;
  color: var(--px-text-muted);
}

.px-empty {
  text-align: center;
  justify-items: center;
}

.px-btn,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--px-border);
  background: var(--px-surface-1);
  color: #fff;
  font-family: var(--px-font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.14s ease, border-color 0.14s ease, background-color 0.14s ease;
}

.px-btn:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
}

.px-btn--primary,
.is-style-procxera-primary .wp-block-button__link {
  border-color: rgba(255, 255, 255, 0.4);
  background: var(--px-grad-dark-45);
}

.px-btn--primary:hover,
.is-style-procxera-primary .wp-block-button__link:hover {
  filter: brightness(1.08);
}

.px-btn--ghost,
.is-style-procxera-ghost .wp-block-button__link {
  background: var(--px-surface-0);
  border-color: var(--px-border);
  color: var(--px-text);
}

.px-btn--ghost:hover,
.is-style-procxera-ghost .wp-block-button__link:hover {
  border-color: var(--px-border-strong);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.search-form label {
  display: block;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
  width: 100%;
  min-height: 46px;
  border-radius: var(--px-r-sm);
  border: 1px solid var(--px-border);
  background: rgba(0, 0, 0, 0.24);
  color: var(--px-text);
  font-family: var(--px-font-ui);
  padding: 0.65rem 0.78rem;
}

textarea {
  min-height: 120px;
}

.search-field::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.search-field:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--px-cyan);
  box-shadow: var(--px-focus);
}

.px-pagination {
  margin-top: 1.5rem;
}

.px-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.px-pagination .page-numbers {
  min-width: 42px;
  min-height: 42px;
  padding: 0.3rem 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--px-border);
  background: var(--px-surface-0);
}

.px-pagination .current {
  border-color: var(--px-cyan);
  background: rgba(44, 215, 255, 0.14);
}

.px-post-nav {
  margin-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.px-post-nav a {
  color: var(--px-cyan);
}

.px-post-nav a:hover {
  text-decoration: underline;
}

.px-pattern-proof h3 {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  line-height: 1.25;
}

.wp-block-quote {
  margin: 1.4rem 0;
  border-left: 3px solid var(--px-cyan);
  padding: 0.5rem 1rem;
  color: rgba(255, 255, 255, 0.86);
}

.wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--px-border);
  border-radius: var(--px-r-sm);
  overflow: hidden;
}

.wp-block-table td,
.wp-block-table th {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.68rem 0.72rem;
}

.wp-block-table th {
  color: var(--px-text-muted);
}

