/* blog-content.css — byte-faithful externalization of the blog template's
   .imr-blog-styles embed (Ghost/Koenig kg-* + FAQ + CTA + timeline styles).
   Edit blog content styles HERE going forward. */
/**
 * Zenduty Blog Import Styles
 *
 * Styles for Ghost CMS card elements (bookmark, callout, table)
 * for use when importing to Webflow.
 *
 * Sources:
 * - https://github.com/TryGhost/Ghost/blob/main/ghost/core/core/frontend/src/cards/css/bookmark.css
 * - https://github.com/TryGhost/Ghost/blob/main/ghost/core/core/frontend/src/cards/css/callout.css
 * - https://github.com/TryGhost/Casper (table styles)
 */

/* ==========================================================================
   Bookmark Card Styles
   ========================================================================== */

.w-richtext figure div{
	color: inherit !important;
	font-size: inherit !important;
}
.text-rich-text figure {
		max-width: none !important;
}
.w-richtext figure img {
    width: auto !important;
}



.kg-bookmark-card,
.kg-bookmark-card * {
    box-sizing: border-box;
}

.kg-bookmark-card,
.kg-bookmark-publisher {
    position: relative;
}

.kg-bookmark-card a.kg-bookmark-container,
.kg-bookmark-card a.kg-bookmark-container:hover {
    display: flex;
    background: #fff;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgb(124 139 154 / 25%);
    overflow: hidden;
    color: #222;
}

.kg-bookmark-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-basis: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

.kg-bookmark-title {
    font-size: 15px;
    line-height: 1.4em;
    font-weight: 600;
}

.kg-bookmark-description {
    display: -webkit-box;
    font-size: 14px;
    line-height: 1.5em;
    margin-top: 3px;
    font-weight: 400;
    max-height: 44px;
    overflow-y: hidden;
    opacity: 0.7;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    margin-top: 22px;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.kg-bookmark-metadata > *:not(img) {
    opacity: 0.7;
}

.kg-bookmark-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
}

.kg-bookmark-author,
.kg-bookmark-publisher {
    display: inline;
}

.kg-bookmark-publisher {
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 240px;
    white-space: nowrap;
    display: block;
    line-height: 1.65em;
}

.kg-bookmark-metadata > span:nth-of-type(2) {
    font-weight: 400;
}

.kg-bookmark-metadata > span:nth-of-type(2):before {
    content: "•";
    margin: 0 6px;
}

.kg-bookmark-metadata > span:last-of-type {
    overflow: hidden;
    text-overflow: ellipsis;
}

.kg-bookmark-thumbnail {
    position: relative;
    flex-grow: 1;
    min-width: 33%;
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0 2px 2px 0;
}

/* Bookmark card with caption */
.kg-card-hascaption figcaption {
    font-size: 14px;
    line-height: 1.5em;
    color: #666;
    text-align: center;
    margin-top: 12px;
}

/* ==========================================================================
   Callout Card Styles
   ========================================================================== */

.kg-callout-card,
.kg-callout-card * {
    box-sizing: border-box;
}

.kg-callout-card {
    display: flex;
    padding: 1.2em 1.6em;
    border-radius: 8px;
}

.kg-callout-card-grey {
    background: rgba(124, 139, 154, 0.13);
}

.kg-callout-card-white {
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(124, 139, 154, 0.2);
}

.kg-callout-card-blue {
    background: rgba(33, 172, 232, 0.12);
}

.kg-callout-card-green {
    background: rgba(52, 183, 67, 0.12);
}

.kg-callout-card-yellow {
    background: rgba(240, 165, 15, 0.13);
}

.kg-callout-card-red {
    background: rgba(209, 46, 46, 0.11);
}

.kg-callout-card-pink {
    background: rgba(225, 71, 174, 0.11);
}

.kg-callout-card-purple {
    background: rgba(135, 85, 236, 0.12);
}

.kg-callout-card-accent {
    background: var(--ghost-accent-color, #ff6b35);
    color: #fff;
}

.kg-callout-card.kg-callout-card-accent a {
    color: #fff;
    text-decoration: underline;
}

.kg-callout-card div.kg-callout-emoji {
    padding-right: 0.8em;
    line-height: 1.25em;
    font-size: 1.15em;
}

.kg-callout-card div.kg-callout-text {
    font-size: 0.95em;
    line-height: 1.5em;
}

.kg-callout-card + .kg-callout-card {
    margin-top: 1em;
}

/* ==========================================================================
   Table Styles
   ========================================================================== */

table {
    display: inline-block;
    overflow-x: auto;
    max-width: 100%;
    width: auto;
    border-spacing: 0;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    font-size: 16px;
    white-space: nowrap;
    vertical-align: top;
    -webkit-overflow-scrolling: touch;
}

table th,
table td {
    padding: 6px 12px;
    border: 1px solid rgba(124, 139, 154, 0.25);
}

table th {
    background-color: rgba(124, 139, 154, 0.1);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.025em;
}

table td {
    background-color: #fff;
}

table tr:nth-child(even) td {
    background-color: rgba(124, 139, 154, 0.05);
}

/* Custom table variants */
.comparison-table,
.loadbalancer-table,
.tldr-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.loadbalancer-table th,
.tldr-table th {
    background-color: #f7f7f7;
}

.comparison-table tr:nth-child(even) td,
.loadbalancer-table tr:nth-child(even) td,
.tldr-table tr:nth-child(even) td {
    background-color: #fafafa;
}

.comparison-table td,
.comparison-table th,
.loadbalancer-table td,
.loadbalancer-table th,
.tldr-table td,
.tldr-table th {
    border: 1px solid #eaeaea;
}

/* Uptime/Availability table column classes */
.uptime-col {
    background-color: #ebf5fb;
    text-align: left;
}

.availability-col {
    background-color: #e8f8f5;
    text-align: left;
}

.factor-cell {
    background-color: #eaf2f8;
    font-weight: 600;
}

/* Status indicator cells with colored bullet points */
.yes::before,
.no::before,
.partial::before {
    content: "•";
    font-weight: bold;
    margin-right: 0.5rem;
}

.yes::before {
    color: #2c7a52;
}

.no::before {
    color: #b83232;
}

.partial::before {
    color: #a56e0f;
}

/* Text styling */
.italic {
    font-style: italic;
}

/* ==========================================================================
   General Card Styles
   ========================================================================== */

.kg-card {
    margin: 1.5em 0;
}

.kg-card figcaption {
    font-size: 14px;
    line-height: 1.5em;
    color: #666;
    text-align: center;
    margin-top: 12px;
}

/* Image card styles */
.kg-image-card {
    margin: 1.5em 0;
}

.kg-image-card img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Embed Wrapper (for Webflow import)
   ========================================================================== */

[data-rt-embed-type="true"] {
    margin: 1.5em 0;
}

/* ==========================================================================
   FAQ Styles (blog-faq)
   ========================================================================== */

.blog-faq {
    margin: 2em 0;
}

.blog-faq-h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 1em;
    color: #222;
}

.blog-faq-question {
    margin-bottom: 1.5em;
}

.blog-faq-h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: #333;
}

.blog-faq-answer {
    font-size: 1em;
    line-height: 1.6;
    color: #444;
}

    .element-wrapper {
      background: #fff;
      padding: 20px;
      margin-bottom: 20px;
      border-radius: 8px;
      box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    .element-source {
      font-size: 12px;
      color: #666;
      margin-bottom: 10px;
      font-family: monospace;
    }
    
    /**
 * Zenduty Blog Import Styles
 *
 * Styles for Ghost CMS card elements (bookmark, callout, table)
 * for use when importing to Webflow.
 *
 * Sources:
 * - https://github.com/TryGhost/Ghost/blob/main/ghost/core/core/frontend/src/cards/css/bookmark.css
 * - https://github.com/TryGhost/Ghost/blob/main/ghost/core/core/frontend/src/cards/css/callout.css
 * - https://github.com/TryGhost/Casper (table styles)
 */

/* ==========================================================================
   Bookmark Card Styles
   ========================================================================== */

.kg-bookmark-card,
.kg-bookmark-card * {
    box-sizing: border-box;
}

.kg-bookmark-card,
.kg-bookmark-publisher {
    position: relative;
}

.kg-bookmark-card a.kg-bookmark-container,
.kg-bookmark-card a.kg-bookmark-container:hover {
    display: flex;
    background: #fff;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid rgb(124 139 154 / 25%);
    overflow: hidden;
    color: #222;
}

.kg-bookmark-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-basis: 100%;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 20px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

.kg-bookmark-title {
    font-size: 15px;
    line-height: 1.4em;
    font-weight: 600;
}

.kg-bookmark-description {
    display: -webkit-box;
    font-size: 14px;
    line-height: 1.5em;
    margin-top: 3px;
    font-weight: 400;
    max-height: 44px;
    overflow-y: hidden;
    opacity: 0.7;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.kg-bookmark-metadata {
    display: flex;
    align-items: center;
    margin-top: 22px;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.kg-bookmark-metadata > *:not(img) {
    opacity: 0.7;
}

.kg-bookmark-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
}

.kg-bookmark-author,
.kg-bookmark-publisher {
    display: inline;
}

.kg-bookmark-publisher {
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 240px;
    white-space: nowrap;
    display: block;
    line-height: 1.65em;
}

.kg-bookmark-metadata > span:nth-of-type(2) {
    font-weight: 400;
}

.kg-bookmark-metadata > span:nth-of-type(2):before {
    content: "•";
    margin: 0 6px;
}

.kg-bookmark-metadata > span:last-of-type {
    overflow: hidden;
    text-overflow: ellipsis;
}

.kg-bookmark-thumbnail {
    position: relative;
    flex-grow: 1;
    min-width: 33%;
}

.kg-bookmark-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0 2px 2px 0;
}

/* Bookmark card with caption */
.kg-card-hascaption figcaption {
    font-size: 14px;
    line-height: 1.5em;
    color: #666;
    text-align: center;
    margin-top: 12px;
}

/* ==========================================================================
   Callout Card Styles
   ========================================================================== */

.kg-callout-card,
.kg-callout-card * {
    box-sizing: border-box;
}

.kg-callout-card {
    display: flex;
    padding: 1.2em 1.6em;
    border-radius: 8px;
}

.kg-callout-card-grey {
    background: rgba(124, 139, 154, 0.13);
}

.kg-callout-card-white {
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(124, 139, 154, 0.2);
}

.kg-callout-card-blue {
    background: rgba(33, 172, 232, 0.12);
}

.kg-callout-card-green {
    background: rgba(52, 183, 67, 0.12);
}

.kg-callout-card-yellow {
    background: rgba(240, 165, 15, 0.13);
}

.kg-callout-card-red {
    background: rgba(209, 46, 46, 0.11);
}

.kg-callout-card-pink {
    background: rgba(225, 71, 174, 0.11);
}

.kg-callout-card-purple {
    background: rgba(135, 85, 236, 0.12);
}

.kg-callout-card-accent {
    background: var(--ghost-accent-color, #ff6b35);
    color: #fff;
}

.kg-callout-card.kg-callout-card-accent a {
    color: #fff;
    text-decoration: underline;
}

.kg-callout-card div.kg-callout-emoji {
    padding-right: 0.8em;
    line-height: 1.25em;
    font-size: 1.15em;
}

.kg-callout-card div.kg-callout-text {
    font-size: 0.95em;
    line-height: 1.5em;
}

.kg-callout-card + .kg-callout-card {
    margin-top: 1em;
}

/* ==========================================================================
   Table Styles
   ========================================================================== */

table {
    display: inline-block;
    overflow-x: auto;
    max-width: 100%;
    width: auto;
    border-spacing: 0;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    font-size: 16px;
    white-space: nowrap;
    vertical-align: top;
    -webkit-overflow-scrolling: touch;
}

table th,
table td {
    padding: 6px 12px;
    border: 1px solid rgba(124, 139, 154, 0.25);
}

table th {
    background-color: rgba(124, 139, 154, 0.1);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85em;
    letter-spacing: 0.025em;
}

table td {
    background-color: #fff;
}

table tr:nth-child(even) td {
    background-color: rgba(124, 139, 154, 0.05);
}

/* Custom table variants */
.comparison-table,
.loadbalancer-table,
.tldr-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.loadbalancer-table th,
.tldr-table th {
    background-color: #f7f7f7;
}

.comparison-table tr:nth-child(even) td,
.loadbalancer-table tr:nth-child(even) td,
.tldr-table tr:nth-child(even) td {
    background-color: #fafafa;
}

.comparison-table td,
.comparison-table th,
.loadbalancer-table td,
.loadbalancer-table th,
.tldr-table td,
.tldr-table th {
    border: 1px solid #eaeaea;
}

/* Uptime/Availability table column classes */
.uptime-col {
    background-color: #ebf5fb;
    text-align: left;
}

.availability-col {
    background-color: #e8f8f5;
    text-align: left;
}

.factor-cell {
    background-color: #eaf2f8;
    font-weight: 600;
}

/* Status indicator cells with colored bullet points */
.yes::before,
.no::before,
.partial::before {
    content: "•";
    font-weight: bold;
    margin-right: 0.5rem;
}

.yes::before {
    color: #2c7a52;
}

.no::before {
    color: #b83232;
}

.partial::before {
    color: #a56e0f;
}

/* Text styling */
.italic {
    font-style: italic;
}

/* ==========================================================================
   General Card Styles
   ========================================================================== */

.kg-card {
    margin: 1.5em 0;
}

.kg-card figcaption {
    font-size: 14px;
    line-height: 1.5em;
    color: #666;
    text-align: center;
    margin-top: 12px;
}

/* Image card styles */
.kg-image-card {
    margin: 1.5em 0;
}

.kg-image-card img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Embed Wrapper (for Webflow import)
   ========================================================================== */

[data-rt-embed-type="true"] {
    margin: 1.5em 0;
    padding: 4px;
}

/* ==========================================================================
   FAQ Styles (blog-faq)
   ========================================================================== */

.blog-faq {
    margin: 2em 0;
}

.blog-faq-h2 {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 1em;
    color: #222;
}

.blog-faq-question {
    margin-bottom: 1.5em;
}

.blog-faq-h3 {
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 0.5em;
    color: #333;
}

.blog-faq-answer {
    font-size: 1em;
    line-height: 1.6;
    color: #444;
}

/* ==========================================================================
   CTA Component Styles (zd-mini-cta, ai-cta, zdx-cta)
   ========================================================================== */

/* zd-mini-cta */
.zd-mini-cta {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(90deg, #eef2ff, #f5f8ff);
    border: 1px solid #e0e7ff;
    border-radius: 16px;
    padding: 20px 24px;
    margin: 40px auto;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.zd-mini-cta h3 {
    font-size: 1.125rem;
    color: #3730a3;
    margin: 0;
}

.zd-mini-cta p {
    font-size: 0.95rem;
    color: #4b5563;
    margin: 0;
}

.zd-mini-cta a {
    align-self: flex-start;
    margin-top: 8px;
    background-color: #4f46e5;
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.zd-mini-cta a:hover {
    background-color: #4338ca;
}

/* ai-cta styles */
.ai-cta-container {
    font-family: 'Inter', sans-serif;
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.ai-cta-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
    color: #fff;
}

.ai-cta-card h2 {
    color: #fff;
    margin-bottom: 16px;
}

.ai-cta-card p {
    color: rgba(255,255,255,0.9);
}

.ai-cta-card a {
    color: #fff;
    text-decoration: underline;
}

/* zdx-cta styles */
.zdx-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.zdx-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.zdx-btn.zdx-primary {
    background-color: #6d28d9;
    color: #fff;
}

.zdx-btn.zdx-primary:hover {
    background-color: #5b21b6;
}

.zdx-btn.zdx-secondary {
    background-color: transparent;
    color: #6d28d9;
    border: 2px solid #6d28d9;
}

.zdx-btn.zdx-secondary:hover {
    background-color: rgba(109, 40, 217, 0.1);
}

.zdx-btn .ic {
    width: 16px;
    height: 16px;
}

/* Timeline styles */
.timeline-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    font-family: "Segoe UI", sans-serif;
    position: relative;
}

.timeline-wrapper::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e5e7eb;
}

.timeline-event {
    margin: 2rem 0;
    padding-left: 60px;
    position: relative;
}

.timeline-event::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #4f46e5;
    box-shadow: 0 0 0 4px #eef2ff;
}

.timeline-date {
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.2rem;
}

.timeline-desc {
    color: #374151;
    font-size: 0.95rem;
}
