:root {
    --pi-bg: #e8edf5;
    --pi-surface: rgba(255, 255, 255, 0.82);
    --pi-surface-strong: #ffffff;
    --pi-surface-soft: #f4f7fb;
    --pi-surface-accent: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.94));
    --pi-text: #121826;
    --pi-text-soft: #5a667b;
    --pi-text-muted: #77839a;
    --pi-border: rgba(18, 24, 38, 0.08);
    --pi-border-strong: rgba(18, 24, 38, 0.14);
    --pi-primary: #d91f3a;
    --pi-primary-strong: #b81431;
    --pi-primary-soft: rgba(217, 31, 58, 0.10);
    --pi-shadow-xs: 0 8px 18px rgba(15, 23, 42, 0.05);
    --pi-shadow-sm: 0 12px 28px rgba(15, 23, 42, 0.08);
    --pi-shadow-md: 0 22px 52px rgba(15, 23, 42, 0.12);
    --pi-shadow-lg: 0 28px 72px rgba(15, 23, 42, 0.16);
    --pi-radius-sm: 16px;
    --pi-radius-md: 24px;
    --pi-radius-lg: 32px;
    --pi-radius-pill: 999px;
    --pi-gradient: radial-gradient(circle at top left, rgba(217, 31, 58, 0.18), transparent 34%),
        radial-gradient(circle at top right, rgba(255, 166, 94, 0.14), transparent 38%);
    --pi-font-base: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --pi-font-heading: ui-serif, Georgia, serif;
}

:root[data-pi-theme="dark"] {
    --pi-bg: #09111b;
    --pi-surface: rgba(13, 20, 32, 0.86);
    --pi-surface-strong: #121b2b;
    --pi-surface-soft: #0e1726;
    --pi-surface-accent: linear-gradient(180deg, rgba(18, 27, 43, 0.98), rgba(12, 19, 32, 0.96));
    --pi-text: #eff4ff;
    --pi-text-soft: #a1adc4;
    --pi-text-muted: #8693ac;
    --pi-border: rgba(255, 255, 255, 0.08);
    --pi-border-strong: rgba(255, 255, 255, 0.14);
    --pi-primary: #ff5a74;
    --pi-primary-strong: #ff3555;
    --pi-primary-soft: rgba(255, 90, 116, 0.12);
    --pi-shadow-xs: 0 8px 18px rgba(0, 0, 0, 0.18);
    --pi-shadow-sm: 0 12px 28px rgba(0, 0, 0, 0.24);
    --pi-shadow-md: 0 22px 52px rgba(0, 0, 0, 0.34);
    --pi-shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.42);
    --pi-gradient: radial-gradient(circle at top left, rgba(255, 90, 116, 0.16), transparent 30%),
        radial-gradient(circle at top right, rgba(77, 145, 255, 0.18), transparent 36%);
}

html {
    scroll-behavior: smooth;
}

body.pi-body {
    color: var(--pi-text);
    background:
        var(--pi-gradient),
        linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0)),
        var(--pi-bg);
}

body.pi-body,
body.pi-body button,
body.pi-body input,
body.pi-body select,
body.pi-body textarea {
    font-family: var(--pi-font-base);
}

body.pi-body h1,
body.pi-body h2,
body.pi-body h3,
body.pi-body h4,
body.pi-body h5,
body.pi-body h6,
.pi-frontstage-title,
.pi-lead-story-title,
.pi-section-heading h2,
.article-title,
.widget-title,
.popular-info h3,
.featured-copy h3 {
    font-family: var(--pi-font-heading);
    letter-spacing: -0.03em;
    text-wrap: balance;
}

body.pi-body p,
body.pi-body li,
body.pi-body figcaption,
body.pi-body blockquote {
    text-wrap: pretty;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(100% - 32px, 1280px);
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.row > * {
    width: 100%;
    max-width: 100%;
    padding: 0 12px;
}

@media (min-width: 992px) {
    .col-lg-8 {
        flex: 0 0 auto;
        width: 66.666%;
    }

    .col-lg-4 {
        flex: 0 0 auto;
        width: 33.333%;
    }
}

.skip-link {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1200;
    background: var(--pi-surface-strong);
    color: var(--pi-text);
    border: 1px solid var(--pi-border);
    border-radius: var(--pi-radius-pill);
    padding: 12px 18px;
    text-decoration: none;
    box-shadow: var(--pi-shadow-sm);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: top .18s ease, opacity .18s ease;
}

.skip-link:focus-visible {
    top: 12px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.skip-link:focus:not(:focus-visible) {
    top: -120px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pi-site-main {
    display: block;
    padding: clamp(1rem, 2vw, 1.75rem) 0 clamp(2.5rem, 4vw, 4rem);
}

.pi-main-content {
    display: block;
}

.pi-header {
    transition: box-shadow .24s ease, background-color .24s ease, border-color .24s ease;
}

.pi-header.is-scrolled {
    box-shadow: var(--pi-shadow-md);
}

.header-inner {
    position: relative;
}

.header-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 68px;
}

.pi-nav-row {
    display: none;
}

.pi-nav-categories {
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.logo {
    min-width: clamp(148px, 16vw, 210px);
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    min-height: clamp(38px, 4.6vw, 50px);
}

.header-utility {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.logo-mark img {
    display: block;
    width: auto;
    height: clamp(38px, 4.6vw, 50px);
    max-height: none;
    max-width: clamp(140px, 17vw, 220px);
    object-fit: contain;
}

.footer-brand-text {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    font-weight: 900;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.nav-menu {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
}

.nav-menu.nav-menu-categories {
    width: min(100%, 840px);
    justify-content: center;
    padding: 6px;
    overflow: visible;
}

.nav-menu.nav-menu-categories > li {
    width: 100%;
}

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

.nav-menu li,
.pi-lazy-dropdown li {
    list-style: none;
}

.nav-menu li {
    flex: 0 0 auto;
}

.nav-menu a,
.pi-more-toggle,
.language-toggle,
.theme-toggle,
.menu-toggle,
.share-btn,
.pi-frontstage-topic,
.pi-topic-ribbon-link,
.topic-chip,
.legal-nav a,
.pi-footer-switch a {
    transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.pi-more-toggle:hover,
.pi-more-toggle:focus-visible {
    color: var(--pi-primary-strong);
    background: var(--pi-primary-soft);
}

:root[data-pi-theme="dark"] .nav-menu a:hover,
:root[data-pi-theme="dark"] .nav-menu a:focus-visible,
:root[data-pi-theme="dark"] .pi-more-toggle:hover,
:root[data-pi-theme="dark"] .pi-more-toggle:focus-visible {
    color: var(--pi-text);
    background: rgba(255, 255, 255, 0.08);
}

.pi-more-nav {
    position: relative;
}

.pi-cats-nav {
    width: 100%;
}

.header-cats-nav {
    width: auto;
    flex: 0 0 auto;
}

.pi-more-toggle {
    gap: 8px;
    cursor: pointer;
}

.pi-cats-toggle {
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
}

.header-cats-nav .pi-cats-toggle {
    width: auto;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--pi-border);
    border-radius: 16px;
    background: var(--pi-surface-strong);
    box-shadow: var(--pi-shadow-xs);
}

.pi-cats-toggle .fa-bars {
    color: var(--pi-text-soft);
    font-size: 0.9rem;
}

.pi-more-count {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--pi-primary-soft);
    color: var(--pi-primary-strong);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
}

.pi-more-nav .language-toggle-icon {
    transition: transform .18s ease;
}

.pi-more-nav.is-open .language-toggle-icon {
    transform: rotate(180deg);
}

.pi-lazy-dropdown,
.language-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    min-width: min(520px, calc(100vw - 32px));
    margin: 0;
    padding: 10px;
    border: 1px solid var(--pi-border);
    border-radius: 24px;
    background: var(--pi-surface-strong);
    box-shadow: var(--pi-shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}

.pi-cats-nav .pi-cats-dropdown {
    left: 50%;
    right: auto;
    min-width: min(980px, calc(100vw - 32px));
    transform: translate(-50%, 8px);
}

.header-cats-nav .pi-cats-dropdown {
    left: auto;
    right: 0;
    min-width: min(560px, calc(100vw - 24px));
    transform: translateY(8px);
}

.pi-cats-nav.is-open .pi-cats-dropdown {
    transform: translate(-50%, 0);
}

.header-cats-nav.is-open .pi-cats-dropdown {
    transform: translateY(0);
}

.pi-more-nav.is-open .pi-lazy-dropdown,
.header-language-selector.active .language-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.pi-more-dropdown-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 12px;
    color: var(--pi-text-soft);
    font-size: 0.88rem;
}

.pi-more-dropdown-header span {
    color: var(--pi-text);
    font-size: 0.95rem;
    font-weight: 700;
}

.pi-more-search-wrap {
    padding: 0 8px 8px;
}

.pi-more-search {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--pi-border);
    border-radius: 14px;
    background: var(--pi-surface-soft);
    color: var(--pi-text);
    font-size: 0.92rem;
}

.pi-more-search::placeholder {
    color: var(--pi-text-muted);
}

.pi-more-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 8px;
    max-height: min(420px, 56vh);
    margin: 0;
    padding: 4px;
    overflow: auto;
}

.pi-more-list::-webkit-scrollbar {
    width: 8px;
}

.pi-more-list::-webkit-scrollbar-thumb {
    background: var(--pi-border-strong);
    border-radius: 999px;
}

.pi-more-item a,
.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--pi-text);
}

.pi-more-item a:hover,
.language-option:hover,
.pi-more-item a:focus-visible,
.language-option:focus-visible,
.language-option.active {
    background: var(--pi-primary-soft);
    color: var(--pi-primary-strong);
}

.pi-more-item a.is-current {
    border: 1px solid var(--pi-border);
    background: var(--pi-primary-soft);
    color: var(--pi-primary-strong);
}

.pi-more-empty {
    margin: 4px 0 2px;
    padding: 10px 12px;
    color: var(--pi-text-soft);
    font-size: 0.9rem;
}

.language-dropdown-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 14px;
    color: var(--pi-text-soft);
    font-size: 0.9rem;
}

.language-toggle,
.theme-toggle {
    gap: 10px;
    text-align: left;
    cursor: pointer;
}

.language-toggle-copy,
.theme-toggle-copy,
.language-option-copy {
    display: grid;
    gap: 2px;
}

.language-toggle-copy small,
.theme-toggle-copy small,
.language-option-copy small {
    color: var(--pi-text-muted);
}

.theme-toggle-icon {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--pi-primary-soft);
}

.header-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 48px;
    width: clamp(180px, 22vw, 260px);
    min-width: 0;
    padding: 0 8px 0 12px;
    border: 1px solid var(--pi-border);
    border-radius: 16px;
    background: var(--pi-surface-strong);
    box-shadow: var(--pi-shadow-xs);
}

.header-search-input {
    min-width: 0;
    width: 100%;
    height: 38px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--pi-text);
    font-size: 0.92rem;
}

.header-search-input::placeholder {
    color: var(--pi-text-muted);
}

.header-search-input:focus {
    outline: none;
}

.header-search-submit {
    display: inline-grid;
    place-items: center;
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--pi-primary-soft);
    color: var(--pi-primary-strong);
}

.header-search:focus-within {
    border-color: rgba(217, 31, 58, 0.34);
    box-shadow: 0 0 0 3px rgba(217, 31, 58, 0.14);
}

.header-search-submit:hover,
.header-search-submit:focus-visible {
    background: var(--pi-primary);
    color: #ffffff;
}

.menu-toggle {
    cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
}

.hamburger::before {
    transform: translateY(-6px);
}

.hamburger::after {
    transform: translateY(4px);
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: translateY(0) rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    transform: translateY(-2px) rotate(-45deg);
}

.pi-frontstage,
.pi-topic-ribbon,
.pi-lead-story,
.pi-spotlight-card,
.pi-article-item,
.sidebar-widget,
.pi-breadcrumb-shell,
.pi-article,
.pi-share-rail,
.pi-footer {
    border: 1px solid var(--pi-border);
    background: var(--pi-surface);
    box-shadow: var(--pi-shadow-sm);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.pi-frontstage,
.pi-topic-ribbon,
.pi-footer,
.sidebar-widget,
.pi-breadcrumb-shell,
.pi-article {
    border-radius: var(--pi-radius-lg);
}

.pi-lead-story,
.pi-spotlight-card,
.pi-article-item,
.pi-share-rail {
    border-radius: var(--pi-radius-md);
}

.pi-frontstage {
    position: relative;
    overflow: hidden;
    padding: clamp(1.2rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 248, 255, 0.78)),
        radial-gradient(circle at top left, rgba(217, 31, 58, 0.10), transparent 36%);
}

:root[data-pi-theme="dark"] .pi-frontstage {
    background:
        linear-gradient(135deg, rgba(18, 27, 43, 0.98), rgba(14, 23, 38, 0.92)),
        radial-gradient(circle at top left, rgba(255, 90, 116, 0.12), transparent 32%);
}

.pi-frontstage::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -140px;
    top: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 31, 58, 0.14), transparent 62%);
    pointer-events: none;
}

.pi-frontstage-header {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.pi-frontstage-copy {
    position: relative;
    z-index: 1;
}

.pi-frontstage-pill,
.pi-story-chip,
.pi-card-kicker,
.featured-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.85rem;
    border-radius: var(--pi-radius-pill);
    background: var(--pi-primary-soft);
    color: var(--pi-primary-strong);
    text-transform: uppercase;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.pi-story-chip-muted {
    background: rgba(18, 24, 38, 0.06);
    color: var(--pi-text-soft);
}

:root[data-pi-theme="dark"] .pi-story-chip-muted {
    background: rgba(255, 255, 255, 0.08);
    color: var(--pi-text-soft);
}

.pi-frontstage-overline,
.pi-section-kicker {
    margin: 0.9rem 0 0;
    color: var(--pi-primary-strong);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pi-frontstage-title {
    margin: 0.4rem 0 0;
    font-size: clamp(2.7rem, 5vw, 5rem);
    line-height: 0.96;
}

.pi-frontstage-subtitle {
    max-width: 48rem;
    margin: 0.9rem 0 0;
    color: var(--pi-text-soft);
    font-size: clamp(1rem, 1.8vw, 1.18rem);
}

.pi-frontstage-topics,
.pi-topic-ribbon-scroll,
.topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pi-frontstage-topic,
.pi-topic-ribbon-link,
.topic-chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--pi-border);
    border-radius: var(--pi-radius-pill);
    background: var(--pi-surface-strong);
    color: var(--pi-text);
    box-shadow: var(--pi-shadow-xs);
    text-decoration: none;
}

.pi-frontstage-topic:hover,
.pi-topic-ribbon-link:hover,
.topic-chip:hover,
.pi-frontstage-topic:focus-visible,
.pi-topic-ribbon-link:focus-visible,
.topic-chip:focus-visible,
.share-btn:hover,
.share-btn:focus-visible,
.legal-nav a:hover,
.pi-footer-switch a:hover {
    transform: translateY(-1px);
    box-shadow: var(--pi-shadow-sm);
}

.pi-frontstage-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(280px, 0.84fr);
    gap: 1rem;
}

.pi-lead-story-link {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: stretch;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
}

.pi-lead-story-copy,
.pi-spotlight-copy,
.article-content,
.popular-info,
.featured-copy {
    display: flex;
    flex-direction: column;
}

.pi-lead-story-copy {
    justify-content: center;
    gap: 0.85rem;
    padding: 0.2rem 0.1rem 0.35rem;
}

.pi-lead-story-title {
    margin: 0;
    font-size: clamp(1.85rem, 3.2vw, 3rem);
    line-height: 1.02;
}

.pi-lead-story-excerpt,
.article-excerpt,
.pi-footer-summary,
.pi-section-heading p,
.pi-article-deck,
.popular-info .date,
.featured-copy .date,
.pi-spotlight-date {
    color: var(--pi-text-soft);
}

.pi-story-meta,
.article-meta,
.footer-bottom,
.pi-article-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.pi-story-meta-divider,
.meta-separator {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--pi-primary);
}

.pi-story-cta {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 46px;
    padding: 0.8rem 1rem;
    border-radius: var(--pi-radius-pill);
    background: var(--pi-primary);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 18px 32px rgba(217, 31, 58, 0.20);
}

.pi-spotlight-stack,
.pi-article-grid,
.featured-list,
.popular-list,
.pi-sidebar-shell {
    display: grid;
    gap: 1rem;
}

.pi-spotlight-card a {
    display: grid;
    grid-template-columns: minmax(150px, 42%) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
}

.pi-spotlight-copy {
    justify-content: space-between;
    gap: 0.55rem;
}

.pi-spotlight-copy h3 {
    margin: 0.1rem 0 0;
    font-size: clamp(1.05rem, 1.4vw, 1.32rem);
    line-height: 1.14;
}

.pi-topic-ribbon {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
}

.pi-topic-ribbon-label {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0.7rem 1rem;
    border-radius: 14px;
    background: var(--pi-primary);
    color: #ffffff;
    font-weight: 800;
}

.pi-home-layout,
.pi-article-shell {
    align-items: start;
    row-gap: 1.5rem;
}

.pi-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.pi-section-heading h2 {
    margin: 0.25rem 0 0;
    font-size: clamp(1.9rem, 3vw, 2.9rem);
    line-height: 1;
}

.pi-search-hero,
.pi-search-empty,
.pi-search-pagination {
    border: 1px solid var(--pi-border);
    border-radius: var(--pi-radius-lg);
    background: var(--pi-surface);
    box-shadow: var(--pi-shadow-sm);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.pi-search-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(1.1rem, 2.3vw, 1.8rem);
    margin-bottom: 1.2rem;
}

.pi-search-hero::after {
    content: "";
    position: absolute;
    inset: auto -110px -160px auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(217, 31, 58, 0.12), transparent 64%);
    pointer-events: none;
}

.pi-search-hero h1 {
    margin: 0.55rem 0 0;
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: 1;
}

.pi-search-hero h1 span {
    color: var(--pi-primary-strong);
}

.pi-search-hero p {
    margin: 0.8rem 0 0;
    color: var(--pi-text-soft);
    font-size: 1rem;
}

.pi-search-form {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.pi-search-form-inline {
    grid-template-columns: minmax(0, 1fr) auto;
}

.pi-search-form input {
    min-width: 0;
    min-height: 48px;
    width: 100%;
    padding: 0 0.95rem;
    border: 1px solid var(--pi-border);
    border-radius: 14px;
    background: var(--pi-surface-strong);
    color: var(--pi-text);
    font-size: 1rem;
}

.pi-search-form input::placeholder {
    color: var(--pi-text-muted);
}

.pi-search-form button {
    min-height: 48px;
    padding: 0 1.05rem;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--pi-primary);
    color: #ffffff;
    font-weight: 700;
}

.pi-search-form button:hover,
.pi-search-form button:focus-visible {
    background: var(--pi-primary-strong);
}

.pi-search-empty {
    padding: 1.2rem;
}

.pi-search-empty h2 {
    margin: 0;
    font-size: clamp(1.6rem, 2.2vw, 2rem);
}

.pi-search-empty p {
    margin: 0.5rem 0 0;
    color: var(--pi-text-soft);
}

.pi-search-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
}

.pi-search-pagination a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--pi-border);
    border-radius: var(--pi-radius-pill);
    background: var(--pi-surface-strong);
    color: var(--pi-text);
    font-weight: 700;
    text-decoration: none;
}

.pi-search-pagination a:hover,
.pi-search-pagination a:focus-visible {
    color: var(--pi-primary-strong);
    border-color: rgba(217, 31, 58, 0.3);
}

.pi-search-pagination span {
    color: var(--pi-text-soft);
    font-weight: 600;
}

.pi-article-item > a {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
}

.pi-article-item .article-image {
    aspect-ratio: 16 / 10;
    min-height: 0;
    margin: 0;
}

.pi-article-item .article-title {
    font-size: clamp(1.3rem, 1.95vw, 1.8rem);
}

.pi-article-item .article-excerpt {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title {
    margin: 0;
    font-size: clamp(1.35rem, 2.2vw, 1.95rem);
    line-height: 1.06;
}

.pi-sidebar-shell {
    position: sticky;
    top: 108px;
}

.sidebar-widget {
    padding: 1.1rem;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.featured-item,
.popular-item {
    display: grid;
    gap: 0.9rem;
    padding: 0.9rem;
    border: 1px solid var(--pi-border);
    border-radius: 20px;
    background: var(--pi-surface-soft);
    text-decoration: none;
}

.popular-item {
    grid-template-columns: 108px minmax(0, 1fr);
    align-items: center;
}

.pi-article-page {
    display: block;
}

.pi-breadcrumb-shell,
.pi-article {
    padding: 1rem 1.15rem;
}

.pi-breadcrumb-shell {
    margin-bottom: 1rem;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
    color: var(--pi-text-soft);
    font-size: 0.95rem;
}

.breadcrumbs a {
    color: var(--pi-text);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--pi-primary-strong);
}

.pi-article-layout {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.pi-share-rail {
    position: sticky;
    top: 116px;
    display: grid;
    justify-items: center;
    align-items: center;
    align-content: start;
    gap: 0.65rem;
    padding: 0.9rem;
}

.share-label {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--pi-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.share-btn {
    --share-accent: var(--pi-primary-strong);
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    border: 1px solid var(--pi-border-strong);
    border-radius: 13px;
    background: linear-gradient(180deg, var(--pi-surface-strong), var(--pi-surface-soft));
    color: var(--share-accent);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.share-btn[data-share-network="whatsapp"] {
    --share-accent: #128c7e;
    border-color: rgba(37, 211, 102, 0.35);
    background: rgba(37, 211, 102, 0.10);
}

.share-btn[data-share-network="facebook"] {
    --share-accent: #1877f2;
    border-color: rgba(24, 119, 242, 0.3);
    background: rgba(24, 119, 242, 0.10);
}

.share-btn[data-share-network="x"] {
    --share-accent: #111827;
    border-color: rgba(17, 24, 39, 0.2);
    background: rgba(17, 24, 39, 0.07);
}

.share-btn[data-share-network="telegram"] {
    --share-accent: #229ed9;
    border-color: rgba(34, 158, 217, 0.35);
    background: rgba(34, 158, 217, 0.10);
}

.share-btn[data-share-action="copy"] {
    --share-accent: #1f2937;
}

.share-btn[data-share-action="discord"] {
    --share-accent: #5865f2;
    border-color: rgba(88, 101, 242, 0.3);
    background: rgba(88, 101, 242, 0.10);
}

.share-btn[data-share="native"] {
    --share-accent: var(--pi-primary-strong);
    border-color: rgba(217, 31, 58, 0.3);
    background: rgba(217, 31, 58, 0.10);
}

.share-btn-icon {
    display: inline-grid;
    place-items: center;
    width: 1.12rem;
    height: 1.12rem;
    line-height: 0;
}

.share-btn-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.share-btn:hover,
.share-btn:focus-visible {
    color: var(--share-accent);
}

.share-btn:active {
    transform: translateY(0) scale(0.97);
}

:root[data-pi-theme="dark"] .share-btn {
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

:root[data-pi-theme="dark"] .share-btn[data-share-network="x"],
:root[data-pi-theme="dark"] .share-btn[data-share-action="copy"] {
    --share-accent: #f8fafc;
}

.pi-article .article-header {
    margin-bottom: 1rem;
}

.pi-article-hero-meta {
    margin-bottom: 0.75rem;
}

.pi-article-hero-edition {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.85rem;
    border: 1px solid var(--pi-border);
    border-radius: var(--pi-radius-pill);
    color: var(--pi-text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pi-article .article-title {
    font-size: clamp(1.7rem, 2.35vw, 2.9rem);
    line-height: 0.98;
}

.pi-article-deck {
    margin: 1rem 0 0;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.pi-reading-time {
    color: var(--pi-text-soft);
}

.pi-article .article-image {
    display: block;
    aspect-ratio: auto;
    min-height: 0;
    margin: 0 0 1.2rem;
    background: transparent;
}

.pi-article .article-image.pi-media-shell {
    background: transparent;
    box-shadow: none;
}

.pi-article .article-image.pi-media-shell::after {
    display: none;
}

.pi-article .article-image .pi-media-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    transform: none;
}

.pi-article .article-image:hover .pi-media-image {
    transform: none;
}

.pi-article .article-content {
    display: block;
    font-size: 1.08rem;
    line-height: 1.85;
}

.pi-article .article-content p + p,
.pi-article .article-content ul + p,
.pi-article .article-content ol + p,
.pi-article .article-content h2,
.pi-article .article-content h3,
.pi-article .article-content blockquote {
    margin-top: 1.2rem;
}

.pi-article .article-content h2,
.pi-article .article-content h3,
.pi-article .article-content h4 {
    font-family: var(--pi-font-heading);
    line-height: 1.1;
}

.pi-article .article-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem 0;
    border-radius: 20px;
}

.pi-article .article-content figure {
    margin: 1rem 0;
}

.pi-article .article-content figure img {
    margin: 0;
}

.pi-article .article-content blockquote {
    margin-left: 0;
    padding: 1rem 1.1rem;
    border-left: 4px solid var(--pi-primary);
    border-radius: 0 18px 18px 0;
    background: var(--pi-surface-soft);
    color: var(--pi-text-soft);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pi-border);
}

.pi-tags-heading {
    flex: 0 0 100%;
    margin: 0;
    font-size: 1rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.65rem 0.9rem;
    border-radius: var(--pi-radius-pill);
    background: var(--pi-primary-soft);
    color: var(--pi-primary-strong);
    font-weight: 700;
}

.pi-footer {
    padding: clamp(1.4rem, 3vw, 2rem);
    margin-top: 2.5rem;
    background: var(--pi-surface-accent);
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 1.5rem;
    align-items: start;
}

.footer-logo img {
    max-height: 54px;
}

.footer-nav {
    display: flex;
    justify-content: flex-end;
}

.legal-nav,
.pi-footer-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
}

.legal-nav a,
.pi-footer-switch a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: var(--pi-text-soft);
    text-decoration: none;
}

.footer-bottom {
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--pi-border);
    color: var(--pi-text-soft);
}

.pi-media-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(217, 31, 58, 0.10), rgba(72, 111, 255, 0.10));
}

.pi-media-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: translateX(-100%);
    animation: pi-skeleton 1.4s ease-in-out infinite;
}

:root[data-pi-theme="dark"] .pi-media-shell::after {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
}

.pi-media-shell.is-loaded::after {
    display: none;
}

.pi-media-image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform .36s ease, opacity .3s ease;
}

.pi-media-shell:hover .pi-media-image {
    transform: scale(1.05);
}

.pi-lead-story-media {
    aspect-ratio: 16 / 10;
    min-height: 0;
}

.pi-spotlight-media,
.popular-image-shell {
    aspect-ratio: 4 / 3;
    min-height: 0;
}

.article-image {
    aspect-ratio: 16 / 10;
    min-height: 0;
    margin: 0;
}

.logo-placeholder {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 100%;
    padding: 1.5rem;
}

.animate-on-scroll {
    animation: pi-rise .5s ease both;
}

@keyframes pi-skeleton {
    to {
        transform: translateX(100%);
    }
}

@keyframes pi-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1199px) {
    .pi-frontstage-header,
    .pi-frontstage-grid,
    .pi-lead-story-link,
    .pi-section-heading,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .pi-article-layout {
        grid-template-columns: 1fr;
    }

    .pi-share-rail {
        position: static;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        padding: 0.75rem;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .pi-share-rail::-webkit-scrollbar {
        display: none;
    }

    .pi-share-rail .share-label {
        margin-right: 0.2rem;
        text-align: left;
        white-space: nowrap;
    }

    .share-btn {
        flex: 0 0 auto;
        width: 44px;
        min-width: 44px;
    }
}

@media (max-width: 991px) {
    .container {
        width: min(100% - 24px, 1280px);
    }

    .nav-menu {
        z-index: 40;
        overflow: visible;
    }

    .nav-menu.nav-menu-categories {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        width: 100%;
        border-radius: 18px;
        box-shadow: var(--pi-shadow-xs);
    }

    .nav-menu a,
    .pi-more-toggle {
        width: 100%;
        justify-content: space-between;
        min-height: 48px;
        border-radius: 16px;
    }

    .pi-lazy-dropdown,
    .language-dropdown {
        position: static;
        min-width: 0;
        margin-top: 10px;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        display: none;
        box-shadow: none;
    }

    .pi-cats-nav .pi-lazy-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        width: auto;
        min-width: 0;
        margin-top: 0;
        opacity: 0;
        pointer-events: none;
        transform: translateY(8px);
        display: block;
        box-shadow: var(--pi-shadow-md);
    }

    .header-cats-nav .pi-lazy-dropdown {
        left: auto;
        right: 0;
        width: min(420px, calc(100vw - 24px));
    }

    .pi-cats-nav.is-open .pi-lazy-dropdown {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .pi-more-nav.is-open .pi-lazy-dropdown,
    .header-language-selector.active .language-dropdown {
        display: block;
    }

    .pi-more-list {
        grid-template-columns: 1fr;
        max-height: 50vh;
    }

    .theme-toggle-copy,
    .language-toggle-copy {
        display: none;
    }

    .header-search {
        min-width: 180px;
        max-width: 240px;
    }

    .theme-toggle,
    .language-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 0 10px;
    }

    .pi-sidebar-shell {
        position: static;
        top: auto;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .header-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .header-topbar .header-utility {
        justify-content: flex-end;
        overflow: visible;
        padding-bottom: 0;
    }

    .header-search {
        min-width: 46px;
        max-width: 46px;
        width: 46px;
        padding: 0;
        justify-content: center;
    }

    .header-search-input {
        position: absolute;
        width: 1px;
        height: 1px;
        opacity: 0;
        pointer-events: none;
    }

    .header-search-submit {
        width: 38px;
        min-width: 38px;
    }
}

@media (max-width: 767px) {
    .pi-site-main {
        padding-top: 0.85rem;
    }

    .header-topbar {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .header-utility {
        gap: 10px;
        flex-wrap: wrap;
        overflow: visible;
        justify-content: flex-start;
    }

    .header-cats-nav .pi-cats-toggle > span:not(.pi-more-count) {
        display: none;
    }

    .header-search {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: none;
    }

    .pi-search-form-inline {
        grid-template-columns: 1fr;
    }

    .pi-search-pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pi-frontstage,
    .pi-topic-ribbon,
    .pi-breadcrumb-shell,
    .pi-article,
    .sidebar-widget,
    .pi-footer {
        border-radius: 24px;
    }

    .pi-frontstage,
    .pi-topic-ribbon,
    .pi-lead-story-link,
    .pi-spotlight-card a,
    .pi-article-item > a,
    .pi-breadcrumb-shell,
    .pi-article,
    .sidebar-widget,
    .pi-footer {
        padding-left: 0.95rem;
        padding-right: 0.95rem;
    }

    .pi-topic-ribbon {
        align-items: flex-start;
        flex-direction: column;
    }

    .pi-spotlight-card a,
    .pi-article-item > a,
    .popular-item {
        grid-template-columns: 1fr;
    }

    .pi-frontstage-title,
    .pi-article .article-title {
        text-wrap: pretty;
    }

    .footer-nav {
        justify-content: flex-start;
    }

    .footer-bottom {
        align-items: flex-start;
    }
}
