/*
Theme Name: Principal
Theme URI: https://example.com/principal
Author: Codex
Author URI: https://example.com
Description: Tema minimo de WordPress sin jQuery.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: principal
Tags: blog, two-columns, custom-menu, featured-images, translation-ready
*/

:root {
  color-scheme: dark;
  --page-bg: #0e0e0f;
  --surface: rgba(18, 18, 19, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f1f1f1;
  --muted: #a7a7a7;
  --muted-2: #7f7f7f;
  --button: #4b4b4c;
  --radius-lg: 18px;
  --radius-md: 12px;
  --sticky-nav-top: 10px;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.045), transparent 28%),
    radial-gradient(circle at 85% 35%, rgba(255, 255, 255, 0.035), transparent 30%),
    var(--page-bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: -0.02em;
}

.page-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 26px 34px 42px;
}

.site-header {
  position: sticky;
  top: var(--sticky-nav-top);
  z-index: 90;
}

.top-nav {
  max-width: 1060px;
  margin: 0 auto 32px;
  min-height: 78px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(18, 18, 19, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 24px 70px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.top-nav-inner {
  align-items: center;
  width: 100%;
}

.menu-slot {
  min-width: 0;
}

.primary-menu {
  list-style: none;
  margin: 0;
}

.primary-menu .menu-item {
  list-style: none;
}

.primary-menu a,
.nav-link-custom,
.nav-menu-empty {
  color: #d8d8d8;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.nav-link-custom:hover,
.nav-menu-empty:hover {
  color: #fff;
}

.brand {
  color: #e8e8e8;
  font-size: 1.1rem;
  letter-spacing: 0.46em;
  margin-right: -0.46em;
  font-weight: 500;
}

.brand:hover,
.brand:focus {
  color: #fff;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #d6d6d6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-button:hover,
.icon-button:focus {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  opacity: 0.9;
}

.avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #f2f2f2;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero {
  min-height: 405px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 40%),
    rgba(17, 17, 18, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.hero-title {
  max-width: 610px;
  font-size: clamp(2.7rem, 5vw, 4.1rem);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.055em;
}

.hero-copy {
  max-width: 470px;
  color: #b8b8b8;
  font-size: 1.2rem;
  line-height: 1.45;
}

.btn-soft {
  background: linear-gradient(180deg, #5b5b5c, #474748);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  padding: 0.85rem 1.55rem;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-soft:hover,
.btn-soft:focus {
  background: #626263;
  color: #fff;
}

.how-link {
  color: #c9c9c9;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.how-link:hover,
.how-link:focus {
  color: #fff;
}

.search-strip {
  max-width: 1060px;
  margin: 0 auto;
}

.search-panel {
  width: 100%;
}

.search-panel__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(18, 18, 19, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.search-panel__icon {
  color: #aeb0b3;
  flex-shrink: 0;
}

.search-panel__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f5f5;
  font-size: 1rem;
}

.search-panel__input::placeholder {
  color: #8f9195;
}

.search-panel__button {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  background: linear-gradient(180deg, #5b5b5c, #474748);
  color: #fff;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.search-panel__button:hover,
.search-panel__button:focus {
  background: #626263;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.listing-content {
  transition: opacity 0.2s ease;
}

.listing-content.is-loading {
  pointer-events: none;
}

.listing-results {
  position: relative;
  min-height: 18rem;
}

.listing-results #posts,
.listing-results .pagination-wrap {
  transition: filter 0.22s ease, opacity 0.22s ease, transform 0.22s ease;
}

#posts {
  scroll-margin-top: 190px;
}

.listing-loader {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  width: min(100%, 420px);
  padding: 1rem 1.25rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  pointer-events: none;
}

.listing-content.is-loading .listing-loader {
  opacity: 1;
  visibility: visible;
}

.listing-content.is-loading .listing-results #posts,
.listing-content.is-loading .listing-results .pagination-wrap {
  filter: blur(5px);
  opacity: 0.34;
  transform: scale(0.995);
}

.listing-loader__spinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 255, 255, 0.92);
  border-right-color: rgba(255, 255, 255, 0.52);
  animation: principalSpin 0.75s linear infinite;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 10px 30px rgba(0, 0, 0, 0.28);
}

.listing-loader__label {
  color: #e8e8e8;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(18, 18, 19, 0.82);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.hero-art {
  position: relative;
  min-height: 315px;
}

.bubble {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.58);
  background: rgba(19, 19, 20, 0.78);
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.18));
}

.bubble-lg {
  width: 220px;
  height: 168px;
  right: 105px;
  top: 10px;
  border-radius: 50%;
}

.bubble-lg::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 17px;
  width: 55px;
  height: 44px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.58);
  border-right: 2px solid rgba(255, 255, 255, 0.58);
  transform: rotate(29deg);
  background: var(--page-bg);
}

.bubble-mid {
  width: 220px;
  height: 160px;
  left: 14px;
  top: 112px;
  border-radius: 28px;
}

.bubble-mid::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -21px;
  width: 54px;
  height: 42px;
  border-left: 2px solid rgba(255, 255, 255, 0.58);
  border-bottom: 2px solid rgba(255, 255, 255, 0.58);
  border-bottom-left-radius: 36px;
  background: rgba(19, 19, 20, 0.96);
  transform: skewX(-22deg);
}

.bubble-sm {
  width: 160px;
  height: 150px;
  right: 55px;
  bottom: 0;
  border-radius: 26px;
}

.bubble-sm::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: -19px;
  width: 48px;
  height: 38px;
  border-right: 2px solid rgba(255, 255, 255, 0.58);
  border-bottom: 2px solid rgba(255, 255, 255, 0.58);
  border-bottom-right-radius: 34px;
  background: rgba(19, 19, 20, 0.96);
  transform: skewX(25deg);
}

.bubble-lines {
  position: absolute;
  left: 55px;
  right: 40px;
  top: 58px;
  color: rgba(255, 255, 255, 0.7);
}

.line {
  height: 2px;
  background: currentColor;
  opacity: 0.75;
  margin-bottom: 18px;
}

.line:nth-child(1) {
  width: 100px;
  margin-left: 4px;
}

.line:nth-child(2) {
  width: 120px;
  margin-left: 0;
}

.line:nth-child(3) {
  width: 72px;
  margin-left: 34px;
}

.dots {
  position: absolute;
  left: 58px;
  top: 76px;
  display: flex;
  gap: 32px;
  z-index: 2;
}

.dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.65);
  background: rgba(0, 0, 0, 0.16);
}

.spark {
  position: absolute;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.42);
  font-size: 50px;
  line-height: 1;
  letter-spacing: 0.12em;
}

.spark-one {
  left: -3px;
  top: 52px;
  transform: rotate(-18deg);
}

.spark-two {
  right: 28px;
  bottom: 122px;
  transform: rotate(14deg);
}

.people-icon {
  position: absolute;
  inset: 38px 0 0;
  margin: auto;
  width: 88px;
  height: 70px;
  opacity: 0.72;
  z-index: 2;
}

.tabs-row {
  color: #a9a9a9;
  gap: 2.15rem;
}

.listing-toolbar {
  align-items: center;
}

.tab-item {
  position: relative;
  color: #9d9d9d;
  text-decoration: none;
  font-size: 1.02rem;
  padding: 0 0 14px;
  white-space: nowrap;
}

.tab-item.active,
.tab-item:hover,
.tab-item:focus {
  color: #f4f4f4;
}

.tab-item.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #dadada;
}

.tab-count {
  margin-left: 0.45rem;
  color: #b8b8b8;
}

.sort-label {
  color: #aaa;
  font-size: 1rem;
}

.sort-select {
  min-width: 182px;
  background-color: rgba(24, 24, 25, 0.88);
  color: #e7e7e7;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 0.75rem 2.4rem 0.75rem 1rem;
}

.sort-select:focus {
  color: #fff;
  background-color: rgba(24, 24, 25, 0.95);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.06);
}

.article-card {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008)),
    rgba(17, 17, 18, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover,
.article-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 38px rgba(0, 0, 0, 0.28);
}

.article-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.article-card-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

.article-card > *:not(.article-card-link),
.related-card > *:not(.article-card-link) {
  position: relative;
  z-index: 1;
}

.card-meta,
.card-id {
  color: #9d9d9d;
  font-size: 1rem;
  font-weight: 500;
}

.article-title {
  color: #ededed;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.045em;
}

.article-card:hover .article-title,
.article-card:focus-within .article-title {
  color: #fff;
}

.article-copy {
  color: #aaa;
  font-size: 1.04rem;
  line-height: 1.43;
}

.tag {
  color: #bababa;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.52rem 0.78rem;
  font-size: 0.94rem;
  line-height: 1;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.014);
}

.tag:hover,
.tag:focus {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.read-btn {
  color: #d8d8d8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.55rem 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.015);
}

.read-btn:hover,
.read-btn:focus {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.view-count {
  color: #969696;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  font-weight: 500;
}

.card-bottom {
  margin-top: auto;
}

.pagination-wrap {
  margin-top: 2rem;
}

.pagination-wrap .page-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  padding: 0;
  list-style: none;
}

.pagination-wrap .page-numbers a,
.pagination-wrap .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: #d9d9d9;
  text-decoration: none;
}

.pagination-wrap .page-numbers .current {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  margin-top: 2rem;
  padding: 0 0 1rem;
}

.site-footer__inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(18, 18, 19, 0.5);
}

.site-footer__copy {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.page-shell {
  max-width: 1060px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.006)),
    rgba(17, 17, 18, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.page-hero {
  padding: 38px 44px 34px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 18% 42%, rgba(255, 255, 255, 0.055), transparent 24%),
    linear-gradient(90deg, rgba(16, 16, 17, 0.96) 0%, rgba(16, 16, 17, 0.8) 100%);
}

.page-kicker {
  color: #a8a8a9;
  font-size: 0.95rem;
  font-weight: 560;
}

.page-title {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(2.3rem, 4.4vw, 3.5rem);
  line-height: 1.12;
  font-weight: 620;
  letter-spacing: -0.055em;
}

.page-body {
  padding: 30px 44px 38px;
}

.single-breadcrumb {
  max-width: 1060px;
  margin: 0 auto 28px;
  color: #909091;
  font-size: 0.86rem;
}

.single-breadcrumb a {
  color: #a7a7a8;
  text-decoration: none;
  font-weight: 560;
}

.single-breadcrumb a:hover,
.single-breadcrumb a:focus {
  color: #fff;
}

.single-breadcrumb__sep {
  display: inline-block;
  margin: 0 0.5rem;
}

.single-shell {
  max-width: 1060px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.006)),
    rgba(17, 17, 18, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.single-hero {
  position: relative;
  min-height: 350px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 20% 45%, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(90deg, rgba(16, 16, 17, 0.96) 0%, rgba(16, 16, 17, 0.86) 52%, rgba(16, 16, 17, 0.46) 100%);
  overflow: hidden;
}

.single-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.single-hero-copy {
  position: relative;
  z-index: 3;
  max-width: 670px;
  padding: 34px 44px 30px;
}

.single-date {
  color: #a8a8a9;
  font-size: 0.98rem;
  font-weight: 520;
}

.single-title {
  max-width: 620px;
  margin: 28px 0 18px;
  font-size: clamp(2.45rem, 4.8vw, 3.9rem);
  line-height: 1.14;
  font-weight: 620;
  letter-spacing: -0.065em;
  text-shadow: 0 7px 28px rgba(0, 0, 0, 0.45);
}

.single-excerpt {
  max-width: 670px;
  color: #b9b9ba;
  font-size: 1.09rem;
  line-height: 1.5;
  margin: 0 0 32px;
}

.single-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 58%;
  opacity: 0.62;
  z-index: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%);
}

.single-art__svg {
  position: absolute;
  inset: 0;
}

.single-number {
  position: absolute;
  top: 24px;
  right: 36px;
  z-index: 5;
  color: #c7c7c8;
  font-size: 1.02rem;
  font-weight: 560;
}

.single-stat-box {
  position: absolute;
  top: 58px;
  right: 27px;
  z-index: 6;
  width: 64px;
  height: 123px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(18, 18, 19, 0.72);
  color: #d5d5d6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.single-stat-box__count {
  color: #d2d2d3;
  font-size: 1.05rem;
  font-weight: 520;
}

.single-body {
  padding: 26px 44px 20px;
  color: #b9b9ba;
}

.single-content > * + * {
  margin-top: 1.5rem;
}

.single-content h2,
.single-content h3,
.single-content h4 {
  color: #eeeeef;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.035em;
}

.single-content h2 {
  font-size: 1.5rem;
}

.single-content h3 {
  font-size: 1.25rem;
}

.single-content p,
.single-content li {
  color: #b4b4b5;
  font-size: 1.005rem;
  line-height: 1.7;
}

.single-content ul,
.single-content ol {
  padding-left: 1.25rem;
}

.single-content blockquote {
  margin: 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 12px 12px 0;
}

.single-content pre {
  margin: 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 12px;
  background: rgba(19, 19, 20, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  color: #d3d3d4;
  overflow-x: auto;
}

.single-content code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
}

.single-content :not(pre) > code {
  padding: 0.16rem 0.38rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.single-content figure,
.single-content .wp-block-image {
  margin: 0;
}

.single-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.single-footer {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.related-title {
  max-width: 1060px;
  margin: 22px auto 14px;
  color: #ececec;
  font-size: 1.32rem;
  font-weight: 620;
  letter-spacing: -0.035em;
}

.related-grid {
  max-width: 1060px;
  margin: 0 auto;
}

.related-card {
  position: relative;
  isolation: isolate;
  min-height: 248px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.006)),
    rgba(17, 17, 18, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.related-card:hover,
.related-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 38px rgba(0, 0, 0, 0.28);
}

.related-meta,
.related-id {
  color: #8e8e8f;
  font-size: 0.85rem;
  font-weight: 560;
}

.related-card h3 {
  margin: 11px 0 12px;
  color: #ededed;
  font-size: 1.08rem;
  line-height: 1.22;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.related-card:hover h3,
.related-card:focus-within h3 {
  color: #fff;
}

.related-card p {
  color: #aaa;
  font-size: 0.78rem;
  line-height: 1.43;
  margin: 0 0 16px;
}

.related-tag {
  min-height: 28px;
  padding: 0.38rem 0.62rem;
  font-size: 0.75rem;
  color: #aaa;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  text-decoration: none;
  line-height: 1;
}

.related-tag:hover,
.related-tag:focus {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.related-bottom {
  margin-top: auto;
}

.related-views {
  color: #9d9d9e;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.83rem;
  font-weight: 560;
}

@keyframes principalSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

svg {
  flex-shrink: 0;
}

@media (max-width: 991.98px) {
  :root {
    --sticky-nav-top: 8px;
  }

  .page-wrap {
    padding: 18px 16px 34px;
  }

  .top-nav {
    border-radius: 24px;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }

  .top-nav-inner {
    row-gap: 0.9rem;
    column-gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .menu-slot {
    order: 2 !important;
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    margin-top: 0 !important;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .brand {
    order: 1 !important;
    flex: 0 0 100%;
    min-width: 0;
    max-width: 100%;
    text-align: center !important;
  }

  .nav-actions {
    order: 2 !important;
    flex: 0 0 auto;
    margin-left: 0 !important;
  }

  .primary-menu {
    flex-wrap: nowrap !important;
    gap: 1.35rem !important;
    min-width: max-content;
    padding-bottom: 0.15rem;
  }

  .primary-menu a,
  .nav-menu-empty {
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
  }

  .hero-art {
    min-height: 300px;
    transform: scale(0.92);
    transform-origin: center top;
  }

  .search-panel__inner {
    padding: 0.95rem 1rem;
  }

  .listing-toolbar {
    align-items: center;
    justify-content: center !important;
    text-align: center;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .tabs-row {
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 0.3rem;
    width: 100%;
  }

  .listing-toolbar form {
    justify-content: space-between;
    width: 100%;
  }

  .single-hero-copy {
    padding: 34px 30px;
    max-width: none;
  }

  .single-hero::after,
  .single-art {
    display: none;
  }

  .single-number,
  .single-stat-box {
    right: 22px;
  }

  .single-body {
    padding: 26px 30px 20px;
  }

  .page-hero,
  .page-body {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 575.98px) {
  .site-header {
    top: 0;
  }

  .top-nav-inner {
    row-gap: 0.75rem;
    column-gap: 0.5rem;
  }

  .brand {
    letter-spacing: 0.32em;
    margin-right: -0.32em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-nav {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .nav-actions {
    gap: 0.45rem !important;
  }

  .icon-button {
    width: 34px;
    height: 34px;
  }

  .avatar {
    width: 34px;
    height: 34px;
  }

  .primary-menu {
    gap: 1rem !important;
    justify-content: flex-start;
  }

  .primary-menu a,
  .nav-menu-empty {
    font-size: 0.94rem;
  }

  .page-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .tabs-row {
    gap: 1.25rem;
  }

  .search-panel__inner {
    gap: 0.75rem;
    flex-wrap: wrap;
  }

  .search-panel__button {
    width: 100%;
  }

  .single-number,
  .single-stat-box {
    display: none;
  }

  .single-hero-copy,
  .single-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .single-title {
    margin-top: 20px;
    font-size: 2.25rem;
  }

  .single-content pre {
    font-size: 0.82rem;
  }

  .single-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-hero,
  .page-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 380px) {
  .top-nav {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  .top-nav-inner {
    column-gap: 0.35rem;
  }

  .brand {
    font-size: 1rem;
    letter-spacing: 0.24em;
    margin-right: -0.24em;
  }

  .nav-actions {
    gap: 0.25rem !important;
  }

  .icon-button,
  .avatar {
    width: 30px;
    height: 30px;
  }

  .icon-button svg {
    width: 18px;
    height: 18px;
  }

  .primary-menu {
    gap: 0.85rem !important;
  }

  .primary-menu a,
  .nav-menu-empty {
    font-size: 0.86rem;
  }
}
