:root {
    --pl-blue: #0d4d8c;
    --pl-blue-dark: #073b6f;
    --pl-blue-soft: #e9f1f9;
    --pl-accent: #f5a623;
    --pl-accent-dark: #d6881d;
    --pl-green: #2f8a6b;
    --pl-text: #14233b;
    --pl-text-soft: #38445b;
    --pl-muted: #6a7686;
    --pl-border: #e1e7ee;
    --pl-bg: #ffffff;
    --pl-bg-soft: #f5f8fb;
    --pl-bg-deep: #0e1f33;
    --pl-radius: 14px;
    --pl-radius-lg: 22px;
    --pl-shadow-soft: 0 14px 40px rgba(15, 41, 76, 0.08);
    --pl-shadow-strong: 0 26px 60px rgba(15, 41, 76, 0.16);
    --pl-font-sans: "Inter", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, sans-serif;
    --pl-font-display: "Playfair Display", "Georgia", "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--pl-font-sans);
    color: var(--pl-text);
    background: var(--pl-bg);
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--pl-blue);
}

a:hover {
    color: var(--pl-blue-dark);
}

h1, h2, h3, h4 {
    font-family: var(--pl-font-display);
    color: var(--pl-text);
    letter-spacing: -0.01em;
    line-height: 1.18;
    margin: 0 0 0.7rem;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); }

p {
    margin: 0 0 1rem;
    color: var(--pl-text-soft);
}

.pl-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}

.pl-skip-link {
    position: absolute;
    left: -999px;
    top: 1rem;
    z-index: 30;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 2px solid var(--pl-blue);
}

.pl-skip-link:focus {
    left: 1rem;
}

/* ----------- Site header ----------- */

.pl-site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--pl-border);
}

.pl-site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 2rem;
    min-height: 72px;
}

.pl-brand {
    display: inline-flex;
    flex-direction: column;
    color: var(--pl-text);
    text-decoration: none;
    line-height: 1.2;
}

.pl-brand__name {
    font-family: var(--pl-font-display);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

.pl-brand__claim {
    color: var(--pl-muted);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.pl-primary-nav {
    justify-self: center;
}

.pl-menu,
.pl-footer-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0.4rem;
}

.pl-menu .menu-item > a,
.pl-footer-menu .menu-item > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    color: var(--pl-text-soft);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.16s ease, color 0.16s ease;
}

.pl-menu .menu-item > a:hover,
.pl-menu .current-menu-item > a,
.pl-menu .current_page_item > a {
    background: var(--pl-blue-soft);
    color: var(--pl-blue-dark);
}

.pl-menu .menu-item-has-children > a::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 0.2rem;
    margin-top: -0.18rem;
}

.pl-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.55rem;
}

@media (min-width: 900px) {
    .pl-menu {
        gap: 0.15rem;
    }

    .pl-menu > .menu-item {
        position: relative;
    }

    .pl-menu .sub-menu {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 50%;
        transform: translate(-50%, -8px);
        min-width: 320px;
        max-width: 720px;
        max-height: 70vh;
        overflow-y: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.15rem 0.5rem;
        padding: 1rem;
        background: #fff;
        border: 1px solid var(--pl-border);
        border-radius: var(--pl-radius);
        box-shadow: var(--pl-shadow-soft);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
        z-index: 20;
    }

    .pl-menu > .menu-item:hover > .sub-menu,
    .pl-menu > .menu-item:focus-within > .sub-menu,
    .pl-menu > .menu-item.is-open > .sub-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0);
    }

    .pl-menu .sub-menu .menu-item > a {
        width: 100%;
        padding: 0.45rem 0.7rem;
        border-radius: 10px;
        color: var(--pl-text-soft);
        font-weight: 500;
        font-size: 0.9rem;
    }

    .pl-menu .sub-menu .menu-item > a:hover {
        background: var(--pl-blue-soft);
        color: var(--pl-blue-dark);
    }
}

.pl-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.7rem 1.15rem;
    background: var(--pl-blue);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    transition: background 0.16s ease, transform 0.16s ease;
    white-space: nowrap;
}

.pl-cta-link:hover {
    background: var(--pl-blue-dark);
    color: #fff;
    transform: translateY(-1px);
}

.pl-nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--pl-border);
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-weight: 700;
    color: var(--pl-text);
    cursor: pointer;
}

.pl-nav-toggle__bars {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
}

.pl-nav-toggle__bars span {
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

@media (max-width: 899px) {
    .pl-site-header__inner {
        grid-template-columns: 1fr auto;
        row-gap: 0.75rem;
        padding: 0.75rem 0;
    }

    .pl-cta-link {
        display: none;
    }

    .pl-nav-toggle {
        display: inline-flex;
    }

    .pl-primary-nav {
        grid-column: 1 / -1;
        display: none;
    }

    .pl-primary-nav.is-open {
        display: block;
    }

    .pl-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border: 1px solid var(--pl-border);
        border-radius: var(--pl-radius);
        padding: 0.5rem;
    }

    .pl-menu .menu-item > a {
        padding: 0.7rem 0.85rem;
        width: 100%;
    }

    .pl-menu .sub-menu {
        margin-top: 0.25rem;
        padding-left: 0.85rem;
        border-left: 2px solid var(--pl-blue-soft);
        max-height: 50vh;
        overflow-y: auto;
    }

    .pl-menu .menu-item-has-children > a::after {
        margin-left: auto;
    }
}

/* ----------- Hero ----------- */

.pl-hero {
    position: relative;
    padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3.5rem, 6vw, 5rem);
    background:
        radial-gradient(circle at 18% 20%, rgba(245, 166, 35, 0.18), transparent 36%),
        radial-gradient(circle at 82% 32%, rgba(13, 77, 140, 0.18), transparent 40%),
        linear-gradient(170deg, #f4f8fc 0%, #ffffff 60%, #fff7ec 100%);
    overflow: hidden;
}

.pl-hero::before {
    content: "";
    position: absolute;
    inset: auto -20% -40% auto;
    width: 60%;
    aspect-ratio: 1;
    background: radial-gradient(circle at center, rgba(13, 77, 140, 0.08), transparent 70%);
    pointer-events: none;
}

.pl-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 3rem;
    align-items: center;
    position: relative;
}

.pl-eyebrow {
    margin: 0 0 0.85rem;
    color: var(--pl-blue);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.pl-hero h1 {
    margin: 0 0 1rem;
}

.pl-hero__lead {
    max-width: 620px;
    font-size: 1.15rem;
    color: var(--pl-text-soft);
}

.pl-hero-search {
    display: flex;
    width: min(640px, 100%);
    margin: 1.75rem 0 1.25rem;
    padding: 0.4rem;
    background: #fff;
    border: 1px solid var(--pl-border);
    border-radius: 999px;
    box-shadow: var(--pl-shadow-soft);
}

.pl-hero-search input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0.85rem 1.1rem;
    font: inherit;
    outline: none;
    background: transparent;
    color: var(--pl-text);
}

.pl-hero-search button {
    border: 0;
    border-radius: 999px;
    padding: 0.8rem 1.5rem;
    background: var(--pl-blue);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.16s ease;
}

.pl-hero-search button:hover {
    background: var(--pl-blue-dark);
}

.pl-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.pl-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--pl-border);
    border-radius: 999px;
    background: #fff;
    color: var(--pl-text);
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.pl-button:hover {
    border-color: var(--pl-blue);
    color: var(--pl-blue-dark);
    transform: translateY(-1px);
}

.pl-button--primary {
    background: var(--pl-blue);
    border-color: var(--pl-blue);
    color: #fff;
}

.pl-button--primary:hover {
    background: var(--pl-blue-dark);
    border-color: var(--pl-blue-dark);
    color: #fff;
}

.pl-hero__panel {
    padding: 1.75rem;
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius-lg);
    box-shadow: var(--pl-shadow-soft);
}

.pl-hero__panel strong {
    display: block;
    font-family: var(--pl-font-display);
    font-size: 1.25rem;
    margin-bottom: 0.85rem;
    color: var(--pl-text);
}

.pl-hero__panel ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
}

.pl-hero__panel li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--pl-text-soft);
    font-size: 0.96rem;
}

.pl-hero__panel li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background: var(--pl-accent);
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.18);
}

/* ----------- Generic page hero ----------- */

.pl-page-hero {
    padding: clamp(2.75rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
    background: linear-gradient(180deg, var(--pl-blue-soft), #fff);
    border-bottom: 1px solid var(--pl-border);
}

.pl-page-hero__figure {
    margin: 0 0 1.25rem;
    max-width: 720px;
    border-radius: var(--pl-radius);
    overflow: hidden;
    box-shadow: var(--pl-shadow-soft);
}

.pl-page-hero__category-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
}

.pl-page-hero h1 {
    margin: 0;
}

.pl-page-hero__description {
    max-width: 760px;
    margin-top: 0.75rem;
    color: var(--pl-text-soft);
}

/* ----------- Sections ----------- */

.pl-section {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.pl-section--muted {
    background: var(--pl-bg-soft);
    border-top: 1px solid var(--pl-border);
    border-bottom: 1px solid var(--pl-border);
}

.pl-section-header {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.pl-section-header h2 {
    margin: 0 0 0.55rem;
}

.pl-section-header p {
    margin: 0;
    color: var(--pl-muted);
}

.pl-content--narrow {
    max-width: 820px;
    margin: 0 auto;
}

.pl-content {
    font-size: 1.05rem;
}

/* ----------- Category grid (homepage) ----------- */

.pl-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.pl-category-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius);
    color: var(--pl-text);
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.pl-category-card:hover {
    transform: translateY(-2px);
    border-color: var(--pl-blue);
    box-shadow: var(--pl-shadow-soft);
}

.pl-category-card__image {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: var(--pl-blue-soft);
    flex-shrink: 0;
}

.pl-category-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    flex: 1;
    padding: 1rem 1.1rem 1.15rem;
    text-align: left;
}

.pl-category-card__title {
    display: block;
    font-weight: 700;
    line-height: 1.2;
}

.pl-category-card__count {
    display: block;
    color: var(--pl-muted);
    font-size: 0.85rem;
    line-height: 1.25;
}

/* ----------- Recent listings teaser ----------- */

.pl-listing-teasers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.pl-listing-teaser {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: #fff;
    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius);
    box-shadow: 0 12px 28px rgba(15, 41, 76, 0.04);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.pl-listing-teaser:hover {
    transform: translateY(-2px);
    box-shadow: var(--pl-shadow-soft);
}

.pl-listing-teaser h3 {
    margin: 0 0 0.45rem;
    font-size: 1.15rem;
    line-height: 1.25;
}

.pl-listing-teaser h3 a {
    color: var(--pl-text);
    text-decoration: none;
}

.pl-listing-teaser h3 a:hover {
    color: var(--pl-blue-dark);
}

.pl-listing-teaser p {
    margin: 0 0 1rem;
    color: var(--pl-muted);
}

.pl-text-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--pl-blue);
    font-weight: 700;
    text-decoration: none;
}

.pl-text-link::after {
    content: "->";
    transition: transform 0.16s ease;
}

.pl-text-link:hover::after {
    transform: translateX(3px);
}

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

.pl-site-footer {
    padding: clamp(3rem, 5vw, 4rem) 0 2rem;
    background: var(--pl-bg-deep);
    color: #d6deeb;
}

.pl-site-footer a {
    color: #fff;
}

.pl-site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.pl-site-footer strong {
    display: block;
    font-family: var(--pl-font-display);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.pl-footer-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
}

.pl-footer-menu .menu-item > a {
    color: #d6deeb;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.pl-footer-menu .menu-item > a:hover {
    color: #fff;
    background: transparent;
}

.pl-footer-widget__title {
    font-family: var(--pl-font-display);
    font-size: 1.1rem;
    color: #fff;
}

@media (max-width: 780px) {
    .pl-site-footer__grid,
    .pl-hero__grid {
        grid-template-columns: 1fr;
    }

    .pl-hero-search {
        flex-direction: column;
        border-radius: var(--pl-radius);
        padding: 0.5rem;
    }

    .pl-hero-search input[type="search"] {
        padding: 0.85rem 0.95rem;
    }

    .pl-hero-search button {
        border-radius: var(--pl-radius);
        width: 100%;
    }
}

/* ----------- Directory views (KTP shortcode) ----------- */

.pl-directory {
    --ktp-primary: var(--pl-blue);
    --ktp-primary-hover: var(--pl-blue-dark);
    --ktp-border: var(--pl-border);
    --ktp-text: var(--pl-text);
    --ktp-text-secondary: var(--pl-muted);
}

.pl-directory__intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
    gap: 2rem;
    align-items: end;
    padding: 2rem;
    margin-bottom: 2.25rem;
    background: linear-gradient(135deg, var(--pl-blue-soft), #ffffff);
    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius-lg);
    box-shadow: var(--pl-shadow-soft);
}

.pl-directory__intro h2 {
    margin: 0 0 0.5rem;
}

.pl-directory__categories,
.pl-directory__listings {
    margin-bottom: 2.25rem;
}

.pl-directory__categories > h2,
.pl-directory__listings > h2 {
    margin: 0 0 1.25rem;
}

.pl-directory-search {
    display: flex;
    gap: 0.5rem;
    margin: 0;
}

.pl-directory-search input[type="search"] {
    min-width: 0;
    border: 1px solid var(--pl-border);
    border-radius: 999px;
    padding: 0.85rem 1.1rem;
    font: inherit;
}

.pl-directory-search button {
    border-radius: 999px;
    border: 0;
    padding: 0 1.5rem;
    background: var(--pl-blue);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.pl-directory-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.pl-directory-category {
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.pl-directory-category:hover {
    transform: translateY(-2px);
    border-color: var(--pl-blue);
    box-shadow: var(--pl-shadow-soft);
}

.pl-directory-category__image {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
    background: var(--pl-blue-soft);
}

.pl-directory-category__inner {
    padding: 1.1rem 1.25rem 1.25rem;
}

.pl-directory-category h3 {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.5rem;
    font-family: var(--pl-font-display);
    font-size: 1.1rem;
}

.pl-directory-category h3 a {
    color: var(--pl-text);
    text-decoration: none;
}

.pl-directory-category h3 span {
    color: var(--pl-muted);
    font-size: 0.85rem;
}

.pl-directory-category ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pl-directory-category li {
    margin: 0.2rem 0;
}

.pl-directory-category li a {
    color: var(--pl-muted);
    text-decoration: none;
    font-size: 0.92rem;
}

.pl-directory-category li a:hover {
    color: var(--pl-blue-dark);
}

.pl-directory .ktp-listings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.pl-directory-card {
    display: grid;
    background: #fff;
    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 41, 76, 0.05);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.pl-directory-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--pl-shadow-soft);
}

.pl-directory-card.is-featured {
    border-color: rgba(245, 166, 35, 0.5);
    box-shadow: 0 18px 40px rgba(245, 166, 35, 0.12);
}

.pl-directory-card__media {
    display: block;
    background: linear-gradient(180deg, #f6f9fd, #eef2f8);
    border-bottom: 1px solid var(--pl-border);
}

.pl-directory-card__media img {
    display: block;
}

.pl-directory-card__media.pl-thumb-frame--photo img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}

/* Logos: shorter band, smaller bitmap so small source files stay sharper */
.pl-directory-card__media.pl-thumb-frame--brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 108px;
    max-height: 120px;
}

.pl-directory-card__media.pl-thumb-frame--brand img {
    width: auto;
    max-width: min(176px, 74%);
    max-height: 80px;
    object-fit: contain;
    object-position: center;
}

.pl-directory-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.3rem;
}

.pl-directory-card__badge {
    align-self: flex-start;
    padding: 0.25rem 0.7rem;
    background: var(--pl-accent);
    color: #fff;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pl-directory-card h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.25;
}

.pl-directory-card h3 a {
    color: var(--pl-text);
    text-decoration: none;
}

.pl-directory-card h3 a:hover {
    color: var(--pl-blue-dark);
}

.pl-directory-card__terms,
.pl-listing-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pl-directory-card__terms a,
.pl-listing-detail__tags a {
    padding: 0.2rem 0.6rem;
    background: var(--pl-blue-soft);
    color: var(--pl-blue-dark);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.pl-directory-card__terms a:hover,
.pl-listing-detail__tags a:hover {
    background: var(--pl-blue);
    color: #fff;
}

.pl-directory-card p {
    margin: 0;
    color: var(--pl-muted);
}

.pl-directory-card__facts,
.pl-listing-detail__facts {
    display: grid;
    gap: 0.55rem;
    margin: 0;
}

.pl-directory-card__facts div,
.pl-listing-detail__facts div {
    display: grid;
    gap: 0.15rem;
}

.pl-directory-card__facts dt,
.pl-listing-detail__facts dt {
    color: var(--pl-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pl-directory-card__facts dd,
.pl-listing-detail__facts dd {
    margin: 0;
    color: var(--pl-text-soft);
}

.pl-directory-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* ----------- Single listing layout ----------- */

.pl-listing-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 2.5rem;
    align-items: start;
}

.pl-listing-detail__image {
    margin: 0 0 1.5rem;
    overflow: hidden;
    border-radius: var(--pl-radius-lg);
    box-shadow: var(--pl-shadow-soft);
    background: linear-gradient(180deg, #f6f9fd, #eef2f8);
}

.pl-listing-detail__image img {
    display: block;
}

.pl-listing-detail__image.pl-thumb-frame--photo img {
    width: 100%;
    max-height: min(440px, 58vh);
    object-fit: cover;
    object-position: center;
}

.pl-listing-detail__image.pl-thumb-frame--brand {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.25rem;
}

.pl-listing-detail__image.pl-thumb-frame--brand img {
    width: auto;
    max-width: min(220px, 88%);
    max-height: 112px;
    object-fit: contain;
    object-position: center;
}

.pl-listing-detail__lead {
    font-size: 1.2rem;
    color: var(--pl-text);
}

.pl-listing-detail__content p {
    color: var(--pl-text-soft);
}

.pl-listing-detail__aside {
    position: sticky;
    top: 90px;
    padding: 1.6rem;
    background: linear-gradient(180deg, #fff, #f8fbff);
    border: 1px solid var(--pl-border);
    border-radius: var(--pl-radius-lg);
    box-shadow: var(--pl-shadow-soft);
}

.pl-listing-detail__aside h2 {
    font-size: 1.4rem;
    margin: 0.85rem 0 1rem;
}

.pl-listing-detail__tags {
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--pl-border);
}

.pl-listing-detail__tags strong {
    color: var(--pl-text);
    font-weight: 700;
}

@media (max-width: 900px) {
    .pl-directory__intro,
    .pl-listing-detail__grid {
        grid-template-columns: 1fr;
    }

    .pl-listing-detail__aside {
        position: static;
    }
}

/* ----------- Block content fallback ----------- */

.pl-content ul,
.pl-content ol {
    color: var(--pl-text-soft);
}

.pl-entry__header h1 {
    margin-bottom: 1rem;
}
