/* ============================================================
   /learn/ pillar page styles
   Complement the base site.css with learn-specific components:
   author byline, reading time, TOC, key takeaways, pull quotes,
   callout boxes, prev/next, sticky CTA
   ============================================================ */

/* ============================================================
   Author byline
   ============================================================ */
.learn-byline {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e5e5;
    margin-top: 0.5rem;
}

.learn-byline-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e5e5e5;
}

.learn-byline-text {
    flex: 1;
    min-width: 0;
}

.learn-byline-author {
    font-size: 0.95rem;
    font-weight: 500;
    color: #262626;
    line-height: 1.4;
}

.learn-byline-author a {
    color: #262626;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}

.learn-byline-author a:hover {
    border-bottom-color: #1a9988;
    color: #1a9988;
}

.learn-byline-meta {
    font-size: 0.875rem;
    margin-top: 0.125rem;
    color: #737373;
}

.learn-byline-meta .byline-dot {
    margin: 0 0.4rem;
    color: #a3a3a3;
}

/* ============================================================
   Key Takeaways box
   ============================================================ */
.learn-takeaways-section {
    padding-top: 2.5rem !important;
    padding-bottom: 1rem !important;
}

.learn-takeaways {
    background: #f0f9f8;
    border-left: 4px solid #1a9988;
    padding: 2rem 2rem 1.5rem;
    border-radius: 0 4px 4px 0;
}

.learn-takeaways-title {
    font-size: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #14776a;
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.learn-takeaways ul {
    margin: 0;
    padding-left: 1.25rem;
}

.learn-takeaways ul li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #262626;
}

.learn-takeaways ul li:last-child {
    margin-bottom: 0;
}

/* ============================================================
   Table of Contents
   ============================================================ */
.learn-toc-section {
    padding-top: 2rem !important;
    padding-bottom: 1rem !important;
}

.learn-toc {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    padding: 1.5rem 2rem;
}

.learn-toc-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #737373;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.learn-toc-list {
    margin: 0;
    padding-left: 1.5rem;
    list-style: decimal;
    color: #737373;
}

.learn-toc-list li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.learn-toc-list li a {
    color: #262626;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.learn-toc-list li a:hover {
    color: #1a9988;
    border-bottom-color: #1a9988;
}

/* ============================================================
   Content section heading anchor offset
   (ensures scrolled anchor targets don't hide under sticky nav)
   ============================================================ */
.learn-page section h2 {
    scroll-margin-top: 80px;
}

/* ============================================================
   Pull quotes (for key stats)
   ============================================================ */
.learn-pullquote {
    background: transparent;
    border: none;
    border-left: 4px solid #1a9988;
    padding: 1rem 0 1rem 1.5rem;
    margin: 2rem 0;
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 600;
    color: #171717;
    font-style: italic;
}

.learn-pullquote cite {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #737373;
    font-style: normal;
    margin-top: 0.5rem;
}

/* ============================================================
   Callout boxes
   ============================================================ */
.learn-callout {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #737373;
    border-radius: 0 4px 4px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.learn-callout-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: #737373;
    margin-bottom: 0.5rem;
}

.learn-callout-info {
    border-left-color: #1a6b99;
    background: #f0f7fc;
}

.learn-callout-info .learn-callout-label {
    color: #1a6b99;
}

.learn-callout-warning {
    border-left-color: #b8860b;
    background: #fdf8ee;
}

.learn-callout-warning .learn-callout-label {
    color: #8b6508;
}

.learn-callout-tip {
    border-left-color: #1a9988;
    background: #f0f9f8;
}

.learn-callout-tip .learn-callout-label {
    color: #14776a;
}

.learn-callout p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   Prev/Next navigation
   ============================================================ */
.learn-prev-next-section {
    padding-top: 2rem !important;
    padding-bottom: 3rem !important;
    border-top: 1px solid #e5e5e5;
}

.learn-prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.learn-prev-link,
.learn-next-link {
    display: block;
    padding: 1.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-decoration: none;
    color: #262626;
    transition: border-color 0.2s ease, transform 0.2s ease;
    background: #fafafa;
}

.learn-prev-link:hover,
.learn-next-link:hover {
    border-color: #1a9988;
    text-decoration: none;
    color: #262626;
}

.learn-next-link {
    text-align: right;
}

.learn-prev-label,
.learn-next-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #737373;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.learn-prev-title,
.learn-next-title {
    font-size: 1rem;
    font-weight: 600;
    color: #171717;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .learn-prev-next {
        grid-template-columns: 1fr;
    }
    .learn-next-link {
        text-align: left;
    }
}

/* ============================================================
   Sticky floating "Book a Demo" CTA
   ============================================================ */
.learn-sticky-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1a9988;
    color: #ffffff !important;
    padding: 0.875rem 1.5rem;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(26, 153, 136, 0.3);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transform: translateY(1rem);
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.learn-sticky-cta.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.learn-sticky-cta:hover {
    background: #14776a;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-2px);
}

.learn-sticky-cta-arrow {
    font-size: 1.05rem;
    transition: transform 0.15s ease;
}

.learn-sticky-cta:hover .learn-sticky-cta-arrow {
    transform: translateX(2px);
}

@media (max-width: 640px) {
    .learn-sticky-cta {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
}
