/* What's On detail. Loaded via @push('styles') from pages/whatson_detail.blade.php.
   .article-prose styles raw CMS rich text, modeled on Tailwind Typography's `prose`. */

   .article-prose {
    --prose-body: #374151;
    --prose-heading: #111827;
    --prose-link: var(--section-accent, #018584);
    --prose-muted: #6b7280;
    --prose-border: #e5e7eb;
    --prose-code-bg: #f3f4f6;
    --prose-pre-bg: #1f2937;
    --prose-pre-text: #e5e7eb;

    width: 100%;
    color: var(--prose-body);
    font-size: 18px;
    line-height: 1.8;
    text-align: left;
    overflow-wrap: break-word;
}

.article-prose> :first-child {
    margin-top: 0;
}

.article-prose> :last-child {
    margin-bottom: 0;
}

/* TEXT */
.article-prose p {
    margin: 1.25em 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

.article-prose .lead {
    font-size: 1.25em;
    line-height: 1.6;
    color: var(--prose-muted);
}

.article-prose strong,
.article-prose b {
    font-weight: 600;
    color: var(--prose-heading);
}

.article-prose a {
    color: var(--prose-link);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-prose a:hover {
    text-decoration-thickness: 2px;
}

.article-prose a strong {
    color: inherit;
}

/* HEADINGS */
.article-prose h1,
.article-prose h2,
.article-prose h3,
.article-prose h4,
.article-prose h5,
.article-prose h6 {
    color: var(--prose-heading);
    text-transform: none;
    letter-spacing: normal;
}

.article-prose h1 {
    margin: 0 0 0.89em;
    font-size: 2.25em;
    font-weight: 800;
    line-height: 1.11;
}

.article-prose h2 {
    margin: 2em 0 1em;
    font-size: 1.5em;
    font-weight: 700;
    line-height: 1.33;
}

.article-prose h3 {
    margin: 1.6em 0 0.6em;
    font-size: 1.25em;
    font-weight: 600;
    line-height: 1.6;
}

.article-prose h4,
.article-prose h5,
.article-prose h6 {
    margin: 1.5em 0 0.5em;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.5;
}

.article-prose h2+*,
.article-prose h3+*,
.article-prose h4+*,
.article-prose hr+* {
    margin-top: 0;
}

/* LISTS */
.article-prose ul,
.article-prose ol {
    margin: 1.25em 0;
    padding-left: 1.625em;
}

.article-prose ul {
    list-style-type: disc;
}

.article-prose ol {
    list-style-type: decimal;
}

.article-prose li {
    margin: 0.5em 0;
    padding-left: 0.375em;
}

.article-prose li::marker {
    color: var(--prose-muted);
}

.article-prose ol>li::marker {
    font-weight: 400;
}

.article-prose li>p {
    margin: 0.75em 0;
}

.article-prose ul ul,
.article-prose ul ol,
.article-prose ol ul,
.article-prose ol ol {
    margin: 0.75em 0;
}

/* BLOCKQUOTE / HR */
.article-prose blockquote {
    margin: 1.6em 0;
    padding: 0 0 0 1em;
    border-left: 0.25rem solid var(--prose-border);
    color: var(--prose-heading);
    font-size: inherit;
    font-style: italic;
    font-weight: 500;
}

.article-prose blockquote p:first-of-type::before {
    content: open-quote;
}

.article-prose blockquote p:last-of-type::after {
    content: close-quote;
}

.article-prose hr {
    margin: 3em 0;
    border: 0;
    border-top: 1px solid var(--prose-border);
}

/* MEDIA: CMS images often carry inline width/height attributes */
.article-prose img,
.article-prose video,
.article-prose iframe {
    display: block;
    max-width: 100%;
    margin: 2em auto;
}

.article-prose img,
.article-prose video {
    height: auto;
}

.article-prose iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

.article-prose figure {
    margin: 2em 0;
}

.article-prose figure>* {
    margin-top: 0;
    margin-bottom: 0;
}

.article-prose figure.image {
    display: table;
    margin-left: auto;
    margin-right: auto;
}

.article-prose figcaption {
    margin-top: 0.85em;
    color: var(--prose-muted);
    font-size: 0.875em;
    line-height: 1.43;
    text-align: center;
}

/* CODE */
.article-prose code {
    padding: 0.15em 0.35em;
    border-radius: 0.25rem;
    background: var(--prose-code-bg);
    color: var(--prose-heading);
    font-size: 0.875em;
    font-weight: 600;
}

.article-prose pre {
    margin: 1.7em 0;
    padding: 0.85em 1.15em;
    overflow-x: auto;
    border-radius: 0.375rem;
    background: var(--prose-pre-bg);
    color: var(--prose-pre-text);
    font-size: 0.875em;
    line-height: 1.7;
}

.article-prose pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    font-weight: 400;
}

/* TABLE: figure.table is CKEditor's wrapper */
.article-prose figure.table,
.article-prose .table-wrap {
    overflow-x: auto;
}

.article-prose table {
    width: 100%;
    margin: 2em 0;
    border-collapse: collapse;
    font-size: 0.875em;
    line-height: 1.7;
    text-align: left;
}

.article-prose thead {
    border-bottom: 1px solid var(--prose-border);
}

.article-prose thead th {
    padding: 0 0.57em 0.57em;
    color: var(--prose-heading);
    font-weight: 600;
    vertical-align: bottom;
}

.article-prose tbody tr {
    border-bottom: 1px solid var(--prose-border);
}

.article-prose tbody tr:last-child {
    border-bottom: 0;
}

.article-prose tbody td {
    padding: 0.57em;
    vertical-align: top;
}

/* SIZES: px because the theme sets html { font-size: 88% } */
@media (max-width: 1024px) {
    .article-prose {
        font-size: 17px;
    }
}

/* Mobile type scale matches the homepage (see home.css) */
@media (max-width: 767px) {
    .article-prose {
        font-size: 15px;
        line-height: 1.7;
    }

    .article-prose h1 {
        font-size: var(--section-title-size);
        line-height: var(--section-title-line);
    }

    .article-prose h2 {
        font-size: var(--section-heading-size);
        line-height: var(--section-heading-line);
    }

    .article-prose h3 {
        font-size: 18px;
        line-height: 26px;
    }
}

/* PAGE */
.article-page {
    --article-accent: var(--section-accent, #018584);
    --article-muted: #6b7280;
    --article-line: #e5e7eb;
}

/* Cancel the mobile `main { top: -120px }` shift so the header doesn't cover the breadcrumb */
@media (max-width: 1024px) {
    .article-page:first-child {
        margin-top: 120px;
    }
}

.article-page .post-item {
    float: none;
    padding-bottom: 0;
}

/* HEADER */
.article-header {
    margin-bottom: 36px;
}

/* single line: parent crumbs keep their width, the current title shrinks with an ellipsis */
.article-breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.article-breadcrumb li {
    flex: none;
    white-space: nowrap;
}

.article-breadcrumb .article-breadcrumb__current {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #9ca3af;
}

.article-breadcrumb li+li::before {
    content: "/";
    margin: 0 10px;
    color: #d1d5db;
}

.article-breadcrumb a {
    color: var(--article-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-breadcrumb a:hover {
    color: var(--article-accent);
}

.article-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.article-title {
    margin: 0 0 18px;
    color: #111827;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-align: left;
    text-transform: none;
}

/* HERO IMAGE */
.article-hero {
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.article-hero img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 1024px) {
    .article-title {
        font-size: 32px;
    }
}

@media (max-width: 767px) {
    .article-header {
        margin-bottom: 24px;
    }

    .article-title {
        font-size: var(--section-title-size);
        line-height: var(--section-title-line);
    }

    .article-hero {
        margin-bottom: 28px;
        border-radius: 8px;
    }
}

/* RELATED */
.related-articles {
    margin-top: var(--section-heading-gap, 72px);
    padding-top: 40px;
    border-top: 1px solid var(--article-line, #e5e7eb);
}

.related-articles__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
}

.related-articles__title {
    margin: 0;
    color: #111827;
    font-size: var(--section-heading-size, 24px);
    font-weight: 700;
    line-height: var(--section-heading-line, 36px);
    text-transform: uppercase;
}

.related-articles__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--article-accent, #018584);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.related-articles__all i {
    transition: transform 0.2s ease;
}

.related-articles__all:hover {
    color: var(--article-accent, #018584);
}

.related-articles__all:hover i {
    transform: translateX(4px);
}
