/* Create LMS — Single blog (light). Align tokens with design.md (brand purple, Montserrat, neutrals, rhythm). */

.pt-blog-single {
    --pbs-bg: #fafafa;
    --pbs-purple-btn: #8330c2;
    --pbs-category: #006e00;
    --pbs-meta: #4c4452;
    --pbs-title: #111111;
    --pbs-lead: #111111;
    --pbs-body: #3f3f46;
    --pbs-muted: #9ca3af;
    --pbs-hint: #9ca3af;
    --pbs-border: rgba(15, 23, 42, 0.08);
    --pbs-pill-bg: #ffffff;
    --pbs-pill-border: rgba(15, 23, 42, 0.1);
    --pbs-shadow-soft: 0 18px 48px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.06);
    --pbs-max: min(768px, calc(100% - clamp(24px, 8vw, 48px)));
    --pbs-font: "Montserrat", system-ui, sans-serif;

    background: var(--pbs-bg);
    color: var(--pbs-body);
    font-family: var(--pbs-font);
    -webkit-font-smoothing: antialiased;
}

.pt-blog-single *,
.pt-blog-single *::before,
.pt-blog-single *::after {
    box-sizing: border-box;
}

.pt-blog-single a {
    color: inherit;
}

.pt-blog-single-main {
    max-width: var(--pbs-max);
    margin: 0 auto;
    padding: clamp(64px, 12vw, 96px) clamp(24px, 4vw, 24px) 0;
}

/* Minimal header — pill + title */
.pt-blog-single-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
    padding-bottom: 2.25rem;
}

.pt-blog-single-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    background: var(--pbs-pill-bg);
    border: 1px solid var(--pbs-pill-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease;
}

.pt-blog-single-pill strong {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--pbs-purple-btn);
    line-height: 15px;
}

/* Figma sample used a green category chip; add .-category-green on the pill to match */
.pt-blog-single-pill.-category-green strong {
    color: var(--pbs-category);
}

.pt-blog-single-pill-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.2);
    flex-shrink: 0;
}

.pt-blog-single-pill span:last-child {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--pbs-meta);
    line-height: 15px;
}

.pt-blog-single-h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 3.75rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--pbs-title);
    max-width: 22ch;
}

/* Article column */
.pt-blog-single-article {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-bottom: 3rem;
}

.pt-blog-single-feature {
    margin: 0;
    padding: 1px;
    border-radius: 20px;
    border: 1px solid var(--pbs-border);
    background: #ffffff;
    box-shadow: var(--pbs-shadow-soft);
    overflow: hidden;
}

.pt-blog-single-feature .ratio {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #ffffff;
}

.pt-blog-single-feature img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pt-blog-single-prose {
    display: flex;
    flex-direction: column;
    gap: 23px;
    padding-top: 16px;
}

.pt-blog-single-lead {
    margin: 0;
    font-size: 20px;
    font-weight: 500;
    line-height: 32px;
    color: var(--pbs-lead);
}

.pt-blog-single-prose > p:not(.pt-blog-single-lead) {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 28.8px;
    color: var(--pbs-body);
}

.pt-blog-single-prose ul,
.pt-blog-single-prose ol {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 16px;
    line-height: 28.8px;
}

.pt-blog-single-prose li {
    margin-bottom: 0.35rem;
}

.pt-blog-single-h2 {
    margin: 0;
    padding-top: 40px;
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    color: var(--pbs-title);
}

.pt-blog-single-h2:first-child {
    padding-top: 0;
}

.pt-blog-single-strong {
    font-weight: 600;
    color: var(--pbs-lead);
}

.pt-blog-single-media {
    margin: 1.25rem 0;
    padding: 1px;
    border-radius: 20px;
    border: 1px solid var(--pbs-border);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--pbs-shadow-soft);
}

.pt-blog-single-media img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Blockquote card */
.pt-blog-single-quote {
    position: relative;
    margin: 1.25rem 0;
    padding: 33px 41px;
    border-radius: 22px;
    border: 1px solid var(--pbs-border);
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.pt-blog-single-quote-mark {
    position: absolute;
    left: 32px;
    top: 6px;
    transform: translateY(-50%);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 60px;
    font-style: italic;
    line-height: 60px;
    color: rgba(131, 48, 194, 0.1);
    pointer-events: none;
    user-select: none;
}

.pt-blog-single-quote p {
    margin: 0 0 24px;
    font-size: 24px;
    font-style: italic;
    font-weight: 600;
    line-height: 33px;
    color: var(--pbs-lead);
}

.pt-blog-single-quote cite {
    display: block;
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--pbs-muted);
    line-height: 20px;
}

/* Sidebar → bottom sections */
.pt-blog-single-bottom {
    padding: 48px 0 clamp(72px, 12vw, 120px);
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.pt-blog-single-related-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 40px;
}

.pt-blog-single-related-head h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 32px;
    color: var(--pbs-lead);
}

.pt-blog-single-related-head a {
    font-size: 14px;
    font-weight: 600;
    color: var(--pbs-purple-btn);
    text-decoration: none;
    transition: filter 0.2s ease, color 0.2s ease;
}

.pt-blog-single-related-head a:hover {
    text-decoration: underline;
    filter: brightness(1.06);
}

.pt-blog-single-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
}

@media (max-width: 640px) {
    .pt-blog-single-related-grid {
        grid-template-columns: 1fr;
    }
}

.pt-blog-single-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.pt-blog-single-card:hover .pt-blog-single-card-img {
    opacity: 0.96;
}

.pt-blog-single-card-img {
    border-radius: 20px;
    overflow: hidden;
    background: var(--pbs-border);
    height: 212px;
    transition: opacity 0.2s ease;
}

.pt-blog-single-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pt-blog-single-card-meta {
    padding-top: 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--pbs-hint);
    line-height: 15px;
}

.pt-blog-single-card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 25px;
    color: var(--pbs-lead);
}

/* Keywords footer list */
.pt-blog-single-tags {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--pbs-border);
}

.pt-blog-single-tags h4 {
    margin: 0 0 0.75rem;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pbs-hint);
}

.pt-blog-single-tags ul {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    line-height: 1.65;
    color: var(--pbs-muted);
}

.pt-blog-single .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
