/*
Theme Name: Luminous Labs Blog
Theme URI: https://luminouslabsbd.com/
Author: Luminous Labs
Description: Custom theme that wraps WordPress posts in the Luminous Labs site header and footer. Implements client typography guideline.
Version: 1.2
Text Domain: luminous-labs-blog
*/

/* ============================================================
 * /blog INDEX — grid, search, pagination
 * (cards keep the LL existing visual language, NOT the new
 * blog-typography rules which are scoped to article body only)
 * ============================================================ */

.blog-search { max-width: 560px; margin: 0 auto 50px; }
.blog-search__form {
    position: relative; display: flex; align-items: center;
    background: #fff; border: 1px solid #e6e6e6; border-radius: 999px;
    box-shadow: 0 4px 18px rgba(20, 20, 20, .04);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.blog-search__form:focus-within {
    border-color: #ff6243; box-shadow: 0 6px 22px rgba(255, 98, 67, .18);
}
.blog-search__icon { padding-left: 22px; color: #999; font-size: 16px; }
.blog-search__input {
    flex: 1; border: 0; outline: 0; background: transparent;
    padding: 14px 16px; font-size: 15px; color: #222;
}
.blog-search__input::placeholder { color: #aaa; }
.blog-search__submit {
    border: 0; background: #ff6243; color: #fff;
    padding: 10px 24px; margin: 5px; border-radius: 999px;
    font-weight: 600; letter-spacing: .02em; cursor: pointer;
    transition: background .2s ease;
}
.blog-search__submit:hover { background: #e84f33; }
.blog-search__clear { margin-left: 6px; color: #888; font-size: 13px; text-decoration: underline; }
.blog-search__clear:hover { color: #ff6243; }
.blog-search__meta { text-align: center; color: #666; margin: -30px 0 30px; font-size: 14px; }
.blog-search__meta strong { color: #222; }

.blog-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(20, 20, 20, .06);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(20, 20, 20, .10); }
.blog-card__thumb { display: block; aspect-ratio: 16/9; overflow: hidden; }
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.blog-card:hover .blog-card__thumb img { transform: scale(1.04); }
.blog-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card__meta { font-size: 13px; color: #8a8a8a; margin-bottom: 8px; }
.blog-card__title { font-size: 18px; line-height: 1.4; margin: 0 0 10px; }
.blog-card__title a { color: #1d1d1d; text-decoration: none; }
.blog-card__title a:hover { color: #ff4c4c; }
.blog-card__excerpt { color: #555; font-size: 14px; margin: 0 0 18px; flex: 1; }
.blog-card__link { font-weight: 600; letter-spacing: .02em; text-decoration: none; }
.blog-empty { text-align: center; padding: 60px 0; color: #777; }

.blogs-pagination { margin-top: 40px; }
.blogs-pagination .pagination {
    justify-content: center; gap: 6px; flex-wrap: wrap;
    list-style: none; padding: 0; margin: 0; display: flex;
}
.blogs-pagination .page-item .page-link {
    color: #444; background: #fff; border: 1px solid #e6e6e6;
    border-radius: 8px; padding: 8px 14px; font-weight: 500;
    text-decoration: none; display: inline-block;
}
.blogs-pagination .page-item.active .page-link { background: #ff6243; color: #fff; border-color: #ff6243; }
.blogs-pagination .page-item .page-link:hover { background: #fff5f2; color: #ff6243; border-color: #ff6243; }
.blogs-pagination .page-item.disabled .page-link { color: #bbb; background: #fafafa; }


/* ============================================================
 * SINGLE POST — typography per Blog Typography Guideline.pdf
 * ============================================================ */

.ll-blog-content {
    padding: 60px 0 90px;
    min-height: 50vh;
}

/* Article container — always centered, hard-cap to 760 px per spec */
.ll-post-article {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
}

/* Post meta (date + author) — Inter 14 #666 500 per spec "Small Text / Meta Text" */
.ll-post-meta {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin: 0 0 24px;
    text-align: center;
}

.ll-post-featured-image { margin: 0 0 32px; }
.ll-post-featured-image img {
    width: 100%; height: auto;
    border-radius: 16px;
    display: block;
}

/* Body content — Inter 18/16, #222, line-height 1.8, weight 400 */
.ll-post-content {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #222;
    font-weight: 400;
}

@media (max-width: 767px) {
    .ll-post-content { font-size: 16px; }
}

/* Headings — Satoshi, #111. Margin-top differentiated by level so sub-
   headings don't get the same vertical air as section headings. Spec
   section spacing 70-90 px applies to H1/H2 (top of section); H3-H6
   are progressively tighter. */
.ll-post-content h1,
.ll-post-content h2,
.ll-post-content h3,
.ll-post-content h4,
.ll-post-content h5,
.ll-post-content h6 {
    font-family: 'Satoshi', 'Inter', system-ui, sans-serif;
    color: #111;
    line-height: 1.3;
    /* Offset for sticky LL header when scrolled-to via TOC link */
    scroll-margin-top: 120px;
}
body.admin-bar .ll-post-content h1,
body.admin-bar .ll-post-content h2,
body.admin-bar .ll-post-content h3,
body.admin-bar .ll-post-content h4,
body.admin-bar .ll-post-content h5,
body.admin-bar .ll-post-content h6 {
    scroll-margin-top: 152px;
}

.ll-post-content > :first-child { margin-top: 0; }

/* Heading spacing — small automatic top-margin provides natural breathing
   room without needing a Spacer block on every section. Authors can still
   add WP Spacer blocks for explicit large gaps when desired. */
.ll-post-content h1 { font-size: 40px; font-weight: 700; margin: 32px 0 16px; }
.ll-post-content h2 { font-size: 30px; font-weight: 700; margin: 28px 0 14px; }
.ll-post-content h3 { font-size: 26px; font-weight: 600; margin: 20px 0 12px; }
.ll-post-content h4 { font-size: 24px; font-weight: 600; margin: 16px 0 10px; }
.ll-post-content h5 { font-size: 22px; font-weight: 600; margin: 14px 0 8px; }
.ll-post-content h6 { font-size: 20px; font-weight: 600; margin: 12px 0 8px; }

/* First heading in the content doesn't need a top margin */
.ll-post-content > h1:first-child,
.ll-post-content > h2:first-child,
.ll-post-content > h3:first-child { margin-top: 0; }

@media (max-width: 767px) {
    .ll-post-content h1 { font-size: 32px; }
    .ll-post-content h2 { font-size: 26px; }
    .ll-post-content h3 { font-size: 24px; }
    .ll-post-content h4 { font-size: 22px; }
    .ll-post-content h5 { font-size: 20px; }
    .ll-post-content h6 { font-size: 18px; }
}

/* Paragraphs — 20px bottom spacing per spec */
.ll-post-content p { margin: 0 0 20px; }
.ll-post-content p:last-child { margin-bottom: 0; }

/* Inline — bold text stays black; weight provides emphasis, not color.
   Note: this reversed an earlier "bold = orange" pass per latest client request. */
.ll-post-content strong, .ll-post-content b { font-weight: 700; color: #111; }
.ll-post-content em, .ll-post-content i { font-style: italic; }
/* When bold is inside a link, the link color (orange) wins so links remain visible */
.ll-post-content a strong, .ll-post-content a b { color: inherit; }
/* Bold inside headings inherits heading color (#111) — was already black, kept for safety */
.ll-post-content h1 strong, .ll-post-content h1 b,
.ll-post-content h2 strong, .ll-post-content h2 b,
.ll-post-content h3 strong, .ll-post-content h3 b,
.ll-post-content h4 strong, .ll-post-content h4 b,
.ll-post-content h5 strong, .ll-post-content h5 b,
.ll-post-content h6 strong, .ll-post-content h6 b {
    color: inherit;
    font-weight: inherit;
}

/* WP Spacer block — author-controlled vertical spacing.
   Author usage: in WP block editor, click "+" → search "Spacer" → drag in,
   set height. Renders as <div class="wp-block-spacer" style="height:Xpx">. */
.ll-post-content .wp-block-spacer {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

/* Links — brand orange */
.ll-post-content a {
    color: #ff6243;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ll-post-content a:hover { color: #e84f33; }

/* Lists — explicit override of LL theme.css's nav-list reset */
.ll-post-content ul,
.ll-post-content ol {
    margin: 0 0 20px;
    padding-left: 28px;
}
.ll-post-content ul { list-style: disc outside; }
.ll-post-content ol { list-style: decimal outside; }
.ll-post-content ul ul { list-style: circle outside; padding-left: 24px; margin: 8px 0; }
.ll-post-content ul ul ul { list-style: square outside; }
.ll-post-content ol ol { list-style: lower-alpha; padding-left: 24px; margin: 8px 0; }

.ll-post-content li {
    margin: 8px 0;
    line-height: 1.8;
    border: 0;
    padding: 0;
    display: list-item;
    color: #222;
}
.ll-post-content li::before,
.ll-post-content li::after { content: none; }
.ll-post-content li > p { margin-bottom: 8px; }

/* Images — 16px radius per spec, lazy loading is WP-native via loading="lazy" */
.ll-post-content img,
.ll-post-content figure img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
    margin: 24px auto;
}
.ll-post-content figure { margin: 24px 0; }
.ll-post-content figcaption {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
}

/* Quote — 3px solid #111 left border, #FAFAFA bg, 20px padding per spec */
.ll-post-content blockquote,
.ll-post-content .wp-block-quote {
    border-left: 3px solid #111;
    background: #FAFAFA;
    padding: 20px;
    margin: 24px 0;
    color: #222;
    font-style: normal;
    border-radius: 4px;
}
.ll-post-content blockquote p:last-child,
.ll-post-content .wp-block-quote p:last-child { margin-bottom: 0; }
.ll-post-content blockquote cite,
.ll-post-content .wp-block-quote cite {
    display: block; margin-top: 12px;
    font-style: normal; font-size: 14px; color: #666; font-weight: 500;
}

/* Inline code */
.ll-post-content :not(pre) > code {
    background: #F5F5F5;
    color: #d63384;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.9em;
}

/* Code blocks — #F5F5F5 bg, 12px radius, 20px padding, monospace per spec */
.ll-post-content pre,
.ll-post-content .wp-block-code,
.ll-post-content .wp-block-preformatted {
    background: #F5F5F5;
    color: #111;
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 15px;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch;
}
.ll-post-content pre code,
.ll-post-content .wp-block-code code {
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    font-size: inherit !important;
}

/* Tables — defensive against Google Docs paste, fully responsive.
   The `.ll-table-wrap` wrapper is auto-injected by the_content filter. */
.ll-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 24px 0;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
/* When a Gutenberg table block puts our wrapper inside a <figure>,
   the figure already has 24 px outer margin — drop the wrapper's
   internal margin so we don't double-pad around tables. */
.ll-post-content figure .ll-table-wrap {
    margin: 0;
}
.ll-post-content figure.wp-block-table {
    margin: 28px 0;
}
.ll-post-content table,
.ll-table-wrap table {
    width: 100% !important;
    border-collapse: collapse !important;
    background: #fff !important;
    font-size: 16px;
    margin: 0 !important;
    border: 0 !important;
}
.ll-post-content th,
.ll-post-content td,
.ll-table-wrap th,
.ll-table-wrap td {
    border: 1px solid #e2e8f0 !important;
    padding: 12px 16px !important;
    text-align: left;
    vertical-align: top;
    color: #222 !important;
    background: transparent !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: 1.6 !important;
}
.ll-post-content th,
.ll-table-wrap th {
    background: #f8fafc !important;
    font-weight: 600 !important;
    color: #111 !important;
}
@media (max-width: 767px) {
    .ll-table-wrap { font-size: 14px; }
    .ll-table-wrap th,
    .ll-table-wrap td { padding: 10px 12px !important; }
}

/* FAQ block — collapsible <details>/<summary>
   Author usage (Gutenberg → Custom HTML block):
   <details>
     <summary>What is Odoo ERP?</summary>
     <p>Answer paragraph here.</p>
   </details>
*/
.ll-post-content details {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 12px 0;
    background: #fff;
    transition: background .2s ease;
}
.ll-post-content details[open] { background: #fafafa; }
.ll-post-content summary {
    cursor: pointer;
    font-weight: 600;
    color: #111;
    font-size: 18px;
    list-style: none;
    position: relative;
    padding-right: 28px;
    user-select: none;
    font-family: 'Satoshi', 'Inter', sans-serif;
}
.ll-post-content summary::-webkit-details-marker { display: none; }
.ll-post-content summary::after {
    content: '+';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #ff6243;
    font-weight: 400;
}
.ll-post-content details[open] summary::after { content: '−'; }
.ll-post-content details[open] summary { margin-bottom: 12px; }


/* ============================================================
 * STICKY TABLE OF CONTENTS
 *
 * Layout strategy:
 *   - Below 992 px (mobile/tablet): mobile accordion TOC above article
 *   - 992 px and up: TOC sits in the right sidebar column (col-lg-4)
 *     and uses position: sticky so it follows the reader as they scroll.
 *     Article occupies col-lg-8 with internal max-width: 760 px.
 * ============================================================ */

.ll-toc-wrap { margin-bottom: 30px; }

@media (min-width: 992px) {
    .ll-toc-wrap--desktop {
        position: sticky;
        top: 110px;
        max-height: calc(100vh - 130px);
        overflow-y: auto;
        margin-bottom: 30px;
        align-self: flex-start; /* don't stretch to row height */
    }
    body.admin-bar .ll-toc-wrap--desktop { top: 142px; }
}

.ll-toc {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    font-family: 'Inter', system-ui, sans-serif;
}
.ll-toc__title {
    font-family: 'Satoshi', 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}
.ll-toc__list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.ll-toc__list li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display: block !important;
    line-height: 1.4;
    list-style: none !important;
}
.ll-toc__list li::before { content: none !important; }
.ll-toc__link {
    display: block;
    padding: 8px 0 8px 14px;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    border-left: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
    line-height: 1.5;
}
.ll-toc__link:hover {
    color: #ff6243 !important;
    background: #fff5f2;
}
.ll-toc__link.is-active {
    color: #ff6243 !important;
    border-left-color: #ff6243;
    font-weight: 600;
    background: #fff5f2;
}
.ll-toc__link--h3 {
    padding-left: 30px;
    font-size: 13px;
    color: #6b7280;
}

/* Mobile/tablet TOC: collapsed accordion above content (< 992 px). */
@media (max-width: 991px) {
    .ll-toc-wrap--desktop { display: none; }
    .ll-toc-mobile-toggle {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 14px 20px;
        cursor: pointer;
        width: 100%;
        text-align: left;
        font-family: 'Satoshi', 'Inter', sans-serif;
        font-weight: 600;
        color: #111;
        font-size: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .ll-toc-mobile-toggle::after {
        content: '+';
        font-size: 22px;
        color: #ff6243;
        font-weight: 400;
    }
    .ll-toc-mobile-toggle[aria-expanded="true"]::after { content: '−'; }
    .ll-toc-mobile-panel {
        display: none;
        margin-top: 8px;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        padding: 12px 20px;
    }
    .ll-toc-mobile-panel[data-open="true"] { display: block; }
}
@media (min-width: 992px) {
    .ll-toc-wrap--mobile { display: none; }
}

/* WP admin bar — keep LL sticky header pushed below it */
body.admin-bar .header-sticky { top: 32px !important; }
@media (max-width: 782px) {
    body.admin-bar .header-sticky { top: 46px !important; }
}


/* ============================================================
 * COMMENT FORM — clean branded styling, single left-edge alignment
 * ============================================================ */

.post-comments {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
}

.comments-area {
    max-width: 760px;
    margin: 0 auto;
}

/* Heading + intro text — same left edge */
.comment-reply-title {
    font-family: 'Satoshi', 'Inter', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #111;
    margin: 0 0 10px;
    padding: 0;
    line-height: 1.3;
}

.comment-reply-title small {
    font-size: 14px;
    font-weight: 500;
    margin-left: 12px;
}

.comment-notes {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0 0 28px;
    padding: 0;
    line-height: 1.6;
}

/* Reset every <p> wrapper inside the form to a uniform block */
.comment-form,
.comments-area .comment-form {
    margin: 0;
    padding: 0;
}

.comment-form > p {
    margin: 0 0 18px;
    padding: 0;
    display: block;
    width: 100%;
}

.comment-form label {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}

.comment-form .required,
.comment-form .required-field-message {
    color: #ff6243;
    font-weight: 700;
}

/* All inputs and textarea — same width, same border, same padding */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.5;
    background: #fff;
    color: #222;
    transition: border-color .15s ease, box-shadow .15s ease;
    /* override WP's cols / size attributes */
    min-width: 0;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: 0;
    border-color: #ff6243;
    box-shadow: 0 0 0 3px rgba(255, 98, 67, .12);
}

.comment-form textarea {
    min-height: 160px;
    resize: vertical;
}

/* "Save my name…" checkbox row — checkbox + label inline, same left edge */
.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 24px !important;
}

.comment-form-cookies-consent input[type="checkbox"] {
    margin: 4px 0 0 0;
    flex-shrink: 0;
}

.comment-form-cookies-consent label {
    display: inline;
    margin: 0;
    font-weight: 400;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

/* Submit button — branded orange */
.comment-form .form-submit {
    margin: 0 !important;
}

.comment-form input[type="submit"],
.comment-form button[type="submit"] {
    background: #ff6243;
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 12px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
    line-height: 1.4;
}

.comment-form input[type="submit"]:hover,
.comment-form button[type="submit"]:hover {
    background: #e84f33;
    transform: translateY(-1px);
}

/* Logged-in notice (when admin is signed in) — match the layout */
.logged-in-as {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    margin: 0 0 24px;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.logged-in-as a {
    color: #ff6243;
    text-decoration: underline;
}

/* Existing comments list (if any) */
.comment-list {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
}
.comment-list .comment {
    padding: 20px 0;
    border-bottom: 1px solid #f0f2f5;
}
.comment-list .comment:last-child {
    border-bottom: 0;
}


/* ============================================================
 * READING PROGRESS BAR  (optional sticky element from spec)
 * ============================================================ */

.ll-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 9998;
    pointer-events: none;
}
body.admin-bar .ll-reading-progress { top: 32px; }
@media (max-width: 782px) {
    body.admin-bar .ll-reading-progress { top: 46px; }
}
.ll-reading-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff6243 0%, #ffaa66 100%);
    transition: width .08s linear;
    will-change: width;
}


/* ============================================================
 * STICKY SOCIAL SHARE  (optional sticky element from spec)
 * ============================================================ */

/* Desktop share rail — sits INSIDE the article column (.ll-content-col),
   floats to the left so it doesn't take horizontal space from the article,
   sticky-positioned so it scrolls with article and stops at column end.
   Naturally aligns with the article's top edge (post meta line) instead
   of floating at top: 110 px in viewport. */
.ll-share--desktop {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
    width: 60px;
}

@media (min-width: 992px) {
    .ll-content-col {
        position: relative;
    }
    .ll-share--desktop {
        position: sticky;
        top: 110px;
        float: left;
        margin-left: -80px;
        margin-right: 20px;
        margin-top: 0;
        z-index: 100;
    }
    body.admin-bar .ll-share--desktop { top: 142px; }
}

/* Hide on viewports where there's no room to the left of the article column */
@media (max-width: 1199px) {
    .ll-share--desktop { display: none; }
}

/* Hide desktop rail on viewports too narrow to fit it without overlapping */
@media (max-width: 1399px) {
    .ll-share--desktop { display: none; }
}

/* Position the desktop rail symmetrically opposite the floating TOC */
@media (min-width: 1400px) {
    .ll-share--desktop {
        left: max(24px, calc(50% - 660px));
    }
}

/* Mobile / mid-desktop: inline horizontal row at the end of the post */
.ll-share--mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
}
.ll-share--mobile .ll-share__label {
    margin: 0 8px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
@media (min-width: 1400px) {
    .ll-share--mobile { display: none; }
}

.ll-share__label {
    font-size: 10px;
    color: #6b7280;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    margin: 0 0 6px;
    font-family: 'Inter', sans-serif;
}

.ll-share__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f5f7fa;
    color: #4a5568;
    text-decoration: none !important;
    transition: background .15s ease, color .15s ease, transform .15s ease;
    border: 0;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.ll-share__btn:hover {
    background: #ff6243;
    color: #fff;
    transform: translateY(-1px);
}
.ll-share__btn--facebook:hover { background: #1877f2; }
.ll-share__btn--twitter:hover { background: #000; }
.ll-share__btn--linkedin:hover { background: #0a66c2; }
.ll-share__btn--copy.is-copied {
    background: #10b981;
    color: #fff;
}
.ll-share__btn svg {
    width: 18px;
    height: 18px;
    display: block;
}
.ll-share__btn--twitter svg { width: 15px; height: 15px; }
