/* ==========================================================================
   Blog detail sidebar: table of contents + share.
   Loaded AFTER myhome.css so these override the defaults there. Kept in its
   own file so concurrent work on the main stylesheet cannot collide.
   Palette is the site's own: #c27266 accent, #eaeae2 borders, #f3f3ed surface.
   ========================================================================== */

/* ---- the two cards ---- */
.table_of_content_area,
.share_link_social_area {
    background-color: #fff;
    border: 1px solid #eaeae2;      /* was #ddd, a cold grey against a warm site */
    border-radius: 10px;
    overflow: hidden;
}

/* ---- card headings ----
   These were 22px in the accent colour, which made two loud pink headings
   compete with the article itself. A quiet label reads as sidebar furniture. */
.table_of_content_header,
.share_link_social_header {
    padding: 14px 20px;
    background: #faf9f6;
    border-bottom: 1px solid #eaeae2;
}
.table_of_content_header span,
.share_link_social_header span {
    font-family: var(--myhome-font);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #8b857f;
    line-height: 1.4;
    display: block;
    margin: 0;
}

/* ---- table of contents ---- */
.table_of_content_points_area { padding: 12px 12px 14px; }
.table_of_content_points_area ul { list-style: none; padding: 0; margin: 0; }
.table_of_content_points_area ul li {
    margin-bottom: 1px;
    /* was line-height:100%, which made wrapped entries collide */
    line-height: 1.5;
}
.table_of_content_points_area ul li:last-child { margin-bottom: 0; }

.table_of_content_points_area ul li a {
    display: block;
    padding: 8px 12px 8px 11px;
    border-left: 2px solid transparent;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    color: #55504b;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.table_of_content_points_area ul li a:hover,
.table_of_content_points_area ul li a:focus-visible {
    background-color: #f6f2f0;
    color: #a85a4e;
}
/* set by assets/js/blog-detail.js as the reader moves through the article */
.table_of_content_points_area ul li a.is-current {
    background-color: #f6f2f0;
    border-left-color: #c27266;
    color: #a85a4e;
    font-weight: 550;
}
.table_of_content_points_area ul li a:focus-visible {
    outline: 2px solid #c27266;
    outline-offset: 2px;
}

/* ---- share buttons ----
   Platform colours put five saturated circles next to a muted warm palette.
   Neutral by default, brand accent on hover, so the block reads as part of
   the site while staying obviously interactive. */
.share-wrap { padding: 16px 20px 18px; }
.share-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }

.share-btn,
.share-btn.x,
.share-btn.facebook,
.share-btn.linkedin,
.share-btn.whatsapp,
.share-btn.link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #eaeae2;
    color: #55504b !important;      /* myhome.css forces #fff with !important */
    font-size: 16px;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.share-btn:hover,
.share-btn:focus-visible,
.share-btn.x:hover,
.share-btn.facebook:hover,
.share-btn.linkedin:hover,
.share-btn.whatsapp:hover,
.share-btn.link:hover {
    background-color: #c27266;
    border-color: #c27266;
    color: #fff !important;
    transform: translateY(-2px);
}
.share-btn:focus-visible { outline: 2px solid #c27266; outline-offset: 3px; }
.share-item a i { line-height: 1; }

/* ---- the contents card follows the reader on desktop ---- */
@media (min-width: 992px) {
    .blog-details-row > .blog-aside {
        position: sticky;
        top: 96px;
        align-self: flex-start;
    }
}

@media (max-width: 575px) {
    .table_of_content_header,
    .share_link_social_header { padding: 12px 16px; }
    .table_of_content_points_area { padding: 10px 8px 12px; }
    .share-wrap { padding: 14px 16px 16px; }
    .table_of_content_points_area ul li a { font-size: 13.5px; padding: 7px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .table_of_content_points_area ul li a,
    .share-btn { transition: none !important; }
    .share-btn:hover { transform: none; }
}

/* ==========================================================================
   Inline call to action inside the article body
   Sits before the second heading. Compact on purpose: it should read as a
   helpful aside, not an advert interrupting the piece.
   ========================================================================== */
.blog-inline-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
    margin: 34px 0;
    padding: 20px 22px;
    background: #f6f2f0;
    border-left: 3px solid #c27266;
    border-radius: 0 8px 8px 0;
}
.blog-inline-cta__line {
    margin: 0;
    flex: 1 1 240px;
    font-size: 15.5px;
    line-height: 1.55;
    font-weight: 500;
    color: #221f1d;
}
.blog-inline-cta__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.blog-inline-cta__wa,
.blog-inline-cta__tel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.blog-inline-cta__wa {
    background: #25d366;
    color: #fff;
}
.blog-inline-cta__wa:hover,
.blog-inline-cta__wa:focus-visible { background: #1eb855; color: #fff; }
.blog-inline-cta__tel {
    background: #fff;
    border: 1px solid #eaeae2;
    color: #221f1d;
}
.blog-inline-cta__tel:hover,
.blog-inline-cta__tel:focus-visible { border-color: #c27266; color: #a85a4e; }
.blog-inline-cta__wa:focus-visible,
.blog-inline-cta__tel:focus-visible { outline: 2px solid #c27266; outline-offset: 3px; }

@media (max-width: 640px) {
    .blog-inline-cta {
        margin: 26px 0;
        padding: 18px;
        gap: 14px;
    }
    .blog-inline-cta__line { flex: 1 1 100%; font-size: 15px; }
    .blog-inline-cta__actions { width: 100%; }
    .blog-inline-cta__wa,
    .blog-inline-cta__tel { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
    .blog-inline-cta__wa, .blog-inline-cta__tel { transition: none; }
}
