/* WBert Blog base styles. Custom overrides are served from /blog/custom.css. */
.blog-index-page,
.blog-article-page {
    --blog-content-width: 920px;
    --blog-reading-line-height: 1.8;
}

.blog-index-grid {
    align-items: stretch;
}

.blog-index-card {
    height: 100%;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.blog-index-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.32);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.blog-index-cover {
    display: block;
    width: 100%;
    object-fit: cover;
}

.blog-index-title {
    line-height: 1.25;
}

.blog-article-page {
    max-width: var(--blog-content-width);
}

.blog-article-header {
    margin-bottom: 2rem;
}


.blog-article-meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.blog-article-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.blog-share-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0.3rem;
}

.blog-share-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(125, 211, 252, 0.42);
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.28), rgba(15, 23, 42, 0.94) 58%, rgba(2, 132, 199, 0.2));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 3px 12px rgba(0, 0, 0, 0.28);
    color: rgb(224 242 254);
    cursor: pointer;
    transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.blog-share-trigger::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 55%;
    height: 35%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.blog-share-trigger:hover,
.blog-share-trigger[aria-expanded='true'] {
    transform: translateY(-1px);
    border-color: rgba(125, 211, 252, 0.78);
    background: linear-gradient(145deg, rgba(56, 189, 248, 0.4), rgba(15, 23, 42, 0.94) 58%, rgba(14, 165, 233, 0.3));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 5px 16px rgba(2, 132, 199, 0.2);
}

.blog-share-trigger:focus-visible {
    outline: 2px solid rgb(56 189 248);
    outline-offset: 3px;
}

.blog-share-trigger svg {
    position: relative;
    z-index: 1;
    width: 0.96rem;
    height: 0.96rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.blog-share-dropdown {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.55rem);
    left: 0;
    min-width: 10.5rem;
    padding: 0.38rem;
    border: 1px solid rgba(71, 85, 105, 0.9);
    border-radius: 0.7rem;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(12px);
}

.blog-share-dropdown::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0.64rem;
    width: 9px;
    height: 9px;
    border-top: 1px solid rgba(71, 85, 105, 0.9);
    border-left: 1px solid rgba(71, 85, 105, 0.9);
    background: rgb(15 23 42);
    transform: rotate(45deg);
}

.blog-share-option {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.65rem;
    border: 0;
    border-radius: 0.48rem;
    background: transparent;
    color: rgb(203 213 225);
    font: inherit;
    font-size: 0.82rem;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;
}

.blog-share-option:hover,
.blog-share-option:focus-visible {
    background: rgba(51, 65, 85, 0.72);
    color: rgb(240 249 255);
    outline: none;
}

.blog-share-option svg {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.blog-share-option:first-child svg {
    fill: currentColor;
    stroke: none;
}

.blog-article-cover img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: cover;
}

.blog-article-content {
    font-size: 1.04rem;
    line-height: var(--blog-reading-line-height);
}

.blog-article-content > * + * {
    margin-top: 1.25rem;
}

.blog-article-content h2 {
    margin-top: 2.8rem;
    margin-bottom: 1rem;
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.25;
}

.blog-article-content h3 {
    margin-top: 2.1rem;
    margin-bottom: 0.8rem;
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    line-height: 1.3;
}

.blog-article-content p,
.blog-article-content li {
    color: rgb(203 213 225);
}

.blog-article-content ul,
.blog-article-content ol {
    padding-left: 1.5rem;
}

.blog-article-content ul {
    list-style: disc;
}

.blog-article-content ol {
    list-style: decimal;
}

.blog-article-content li + li {
    margin-top: 0.45rem;
}

.blog-article-content figure {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.blog-article-content figure img,
.blog-article-content > img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.85rem;
}

.blog-article-content figcaption {
    margin-top: 0.65rem;
    color: rgb(148 163 184);
    font-size: 0.9rem;
    text-align: center;
}

.blog-article-content blockquote {
    margin: 1.8rem 0;
    padding: 0.85rem 1.1rem;
    border-left: 3px solid rgb(56 189 248);
    background: rgba(15, 23, 42, 0.55);
    color: rgb(226 232 240);
}

.blog-article-content pre {
    overflow-x: auto;
    padding: 1rem 1.1rem;
    border: 1px solid rgb(51 65 85);
    border-radius: 0.75rem;
    background: rgb(2 6 23);
}

.blog-article-content code {
    font-size: 0.92em;
}

.blog-article-content a {
    color: rgb(56 189 248);
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.blog-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
}

.blog-article-content th,
.blog-article-content td {
    padding: 0.75rem;
    border: 1px solid rgb(51 65 85);
    text-align: left;
    vertical-align: top;
}

@media (max-width: 720px) {
    .blog-article-content {
        font-size: 1rem;
    }

    .blog-article-content pre {
        margin-left: -0.35rem;
        margin-right: -0.35rem;
        border-radius: 0.55rem;
    }
}
