.bg-light{
    background-color: #eeefe9;
}

.border-bg-light {
    --tw-border-opacity: 1;
    border-color: rgb(238 239 233 / var(--tw-border-opacity, 1));
}

.before\:border-light:before {
    --tw-border-opacity: 1;
    border-color: rgb(208 209 201 / var(--tw-border-opacity, 1));
    content: var(--tw-content);
}

.after\:border-light:after {
    --tw-border-opacity: 1;
    border-color: rgb(208 209 201 / var(--tw-border-opacity, 1));
    content: var(--tw-content);
}

*, ::before, ::after {
    border-color: #d0d1c9;
}

.prose h2,
.prose h3 {
    scroll-margin-top: 113px;
}

/* Mobile responsiveness — prose should never exceed its container */
.prose {
    max-width: min(65ch, 100%);
}

@media (max-width: 768px) {
    .prose table {
        font-size: 0.8125rem;
    }

    .prose table th,
    .prose table td {
        padding: 0.5rem 0.625rem;
    }
}

/* Table scroll wrapper — added by MarkdownComponentProcessor around every <table> */
.overflow-x-auto {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Pre/code blocks — scroll horizontally instead of overflowing viewport */
.prose pre {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.peer[open] .peer-open\:rotate-90 {
    --tw-rotate: 90deg;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

h1:focus {
    outline: none;
}

#components-reconnect-modal {
    display: none !important;
}

.not-prose ul {
    list-style-type: disc;
    padding-left: 1.625em;
}

    .not-prose ul li::marker {
        color: var(--tw-prose-bullets);
    }

/* Playbook PDF download button (rendered after H1 on /playbooks/{collection}/{slug}) */
.playbook-pdf-download {
    margin: 0.5rem 0 1.75rem;
}
.playbook-pdf-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background-color: #ea580c; /* orange-600 */
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    text-decoration: none !important;
    transition: background-color 0.15s ease;
}
.playbook-pdf-button:hover {
    background-color: #c2410c; /* orange-700 */
    color: #ffffff !important;
    opacity: 1 !important;
}
.playbook-pdf-icon {
    width: 1.125rem;
    height: 1.125rem;
}

.text-logo {
    font-family: "Rubik", sans-serif;
    font-weight: 500;
    font-size: 20px;
    height: 32px;
    text-align: center;
}

/* About-the-author box, rendered at the end of every article on PostDetail.
   Markup: Components/Shared/AuthorBio.razor. Kept here (not Tailwind) so tweaks
   need no `npm run ui:build`. Brand: cream #F5F1E8 / navy #0B2545 / coral #E63946. */
.author-bio {
    width: 100%;
    max-width: 48rem;
    margin: 0 auto 2.5rem;
}
.author-bio__card {
    border: 1px solid #E8E2D5;
    background-color: #F5F1E8;
    border-radius: 1rem;
    padding: 1.5rem;
}
.author-bio__eyebrow {
    margin: 0 0 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #E63946;
}
.author-bio__row {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.author-bio__avatar {
    width: 5rem;
    height: 5rem;
    flex-shrink: 0;
    border-radius: 9999px;
    object-fit: cover;
    background-color: #f9fafb;
}
.author-bio__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(11, 37, 69, 0.1);
    color: #0B2545;
    font-size: 1.25rem;
    font-weight: 600;
}
.author-bio__body { min-width: 0; }
.author-bio__name {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #0B2545;
}
.author-bio__name a { color: inherit; text-decoration: none; }
.author-bio__name a:hover { color: #E63946; }
.author-bio__role {
    margin: 0.125rem 0 0;
    font-size: 0.875rem;
    color: rgba(11, 37, 69, 0.7);
}
.author-bio__text {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    line-height: 1.5rem;
    color: rgba(11, 37, 69, 0.9);
}
.author-bio__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    margin-top: 1rem;
    font-size: 0.875rem;
}
.author-bio__profile {
    font-weight: 500;
    color: #E63946;
    text-decoration: none;
}
.author-bio__profile:hover { text-decoration: underline; }
.author-bio__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: rgba(11, 37, 69, 0.7);
    text-decoration: none;
}
.author-bio__link:hover { color: #0B2545; }
.author-bio__icon { width: 1rem; height: 1rem; }

@media (min-width: 640px) {
    .author-bio__card { padding: 1.75rem; }
    .author-bio__row { flex-direction: row; align-items: flex-start; }
}
