/* TailAdmin theme utilities (styling only - no layout change) */
[x-cloak] {
  display: none !important;
}

/* Blog featured post - explicit layout to prevent misalignment */
.featured-post-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  gap: 1rem;
  text-align: left;
}
.featured-post-content .featured-post-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.featured-post-content .featured-post-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}
@media (min-width: 768px) {
  .featured-post-content .featured-post-title {
    font-size: 1.875rem;
  }
}
.featured-post-content .featured-post-excerpt {
  font-size: 1rem;
  line-height: 1.625;
  margin: 0;
}
@media (min-width: 768px) {
  .featured-post-content .featured-post-excerpt {
    font-size: 1.125rem;
  }
}
.featured-post-content .featured-post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}
.featured-post-content .featured-post-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

/* Custom styles for strategy, basic, and post templates - not processed by build */

/* Heading styles for strategy, basic, and post templates */
.strategy-content h1,
.basic-content h1,
.post-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 700;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #111827;
}

.strategy-content h2,
.basic-content h2,
.post-content h2 {
    font-size: 2.25rem;
    line-height: 1.3;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    color: #111827;
}

.strategy-content h3,
.basic-content h3,
.post-content h3 {
    font-size: 1.875rem;
    line-height: 1.4;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #111827;
}

.strategy-content h4,
.basic-content h4,
.post-content h4 {
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

/* Post content - paragraphs, lists, links */
.post-content p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
    color: #374151;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-content .post-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: #6b7280;
    margin-top: -0.5rem;
    margin-bottom: 2.5rem;
}

.post-content ul,
.post-content ol {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.post-content ul {
    list-style-type: disc;
    list-style-position: outside;
}

.post-content ol {
    list-style-type: decimal;
    list-style-position: outside;
}

.post-content li {
    display: list-item;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.post-content li:last-child {
    margin-bottom: 0;
}

.post-content a {
    color: #1e3a5f;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content a:hover {
    color: #162d47;
}

.post-content strong {
    color: #111827;
    font-weight: 600;
}

.post-content .post-code-block {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: #1e293b;
    border-radius: 0.5rem;
    overflow-x: auto;
}

.post-content .post-code-block code {
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.9375rem;
    color: #e2e8f0;
}


/* Comparison content styles - optimized for readability and spacing */
.comparison-content section {
    margin-bottom: 3rem;
}

.comparison-content section:last-child {
    margin-bottom: 0;
}

.comparison-content p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.comparison-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.comparison-content h2:first-of-type {
    margin-top: 0;
}

.comparison-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
}

.comparison-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* List improvements - more space between items */
.comparison-content ul,
.comparison-content ol {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding-left: 1.75rem;
}

.comparison-content ul li,
.comparison-content ol li {
    margin-bottom: 0.875rem;
    line-height: 1.7;
    padding-left: 0.5rem;
}

.comparison-content ul li:last-child,
.comparison-content ol li:last-child {
    margin-bottom: 0;
}

.comparison-content ul ul,
.comparison-content ol ol,
.comparison-content ul ol,
.comparison-content ol ul {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

/* Table improvements */
.comparison-content .table-wrap {
    margin: 2rem 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.comparison-content table.table,
.comparison-content table.table-compare {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem; /* 15px - smaller than default */
    line-height: 1.6;
    background-color: #ffffff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
    text-align:left;
}

.comparison-content table.table thead,
.comparison-content table.table-compare thead {
    background-color: #f9fafb;
}

.comparison-content table.table th,
.comparison-content table.table-compare th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem; /* 14px for headers */
    color: #111827;
    border-bottom: 2px solid #e5e7eb;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}


.comparison-content table.table-text td:not(:first-child) {
    text-align: left!important;
}

/* First column - left align, not centered */
.comparison-content table.table th:first-child,
.comparison-content table.table-compare th:first-child,
.comparison-content table.table td:first-child,
.comparison-content table.table-compare td:first-child {
    text-align: left !important;
    padding-left: 1.5rem;
}

/* Other columns center-aligned for comparison */
.comparison-content table.table th:not(:first-child),
.comparison-content table.table-compare th:not(:first-child) {
    text-align: center;
}

.comparison-content table.table td:not(:first-child),
.comparison-content table.table-compare td:not(:first-child) {
    text-align: center;
}

.comparison-content table.table td,
.comparison-content table.table-compare td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
    vertical-align: top;
}

.comparison-content table.table tbody tr:last-child td,
.comparison-content table.table-compare tbody tr:last-child td {
    border-bottom: none;
}

.comparison-content table.table tbody tr:hover,
.comparison-content table.table-compare tbody tr:hover {
    background-color: #f9fafb;
}

/* Table row headers (th scope="row") */
.comparison-content table.table th[scope="row"],
.comparison-content table.table-compare th[scope="row"] {
    font-weight: 600;
    color: #111827;
    background-color: #f9fafb;
    text-align: left;
}

/* Muted text in tables */
.comparison-content table.table .muted,
.comparison-content table.table-compare .muted {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Decision snapshot and two-column layouts */
.comparison-content .decision-snapshot,
.comparison-content .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.comparison-content .decision-col {
    padding: 1.5rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.comparison-content .decision-col h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.comparison-content .decision-col ul {
    margin-top: 0.75rem;
}

/* CTA row */
.comparison-content .cta-row {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    padding: 2rem;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 0.75rem;
    border: 1px solid #bfdbfe;
    justify-content: center;
}

.comparison-content .cta-row .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}

.comparison-content .cta-row .btn-primary {
    background-color: #3b82f6;
    color: #ffffff;
}

.comparison-content .cta-row .btn-primary:hover {
    background-color: #2563eb;
}

.comparison-content .cta-row .btn-secondary {
    background-color: #ffffff;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.comparison-content .cta-row .btn-secondary:hover {
    background-color: #eff6ff;
}

/* Screenshot/Figure styling */
.comparison-content figure.screenshot {
    margin: 2.5rem 0;
    text-align: center;
}

.comparison-content figure.screenshot img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.comparison-content figure.screenshot figcaption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.6;
}

/* FAQ styling */
.comparison-content .faq-list {
    margin: 2rem 0;
}

.comparison-content .faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.comparison-content .faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.comparison-content .faq-item h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    color: #111827;
}

.comparison-content .faq-item p {
    margin-bottom: 0;
    color: #4b5563;
}

/* Also compare section */
.comparison-content .also-compare {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.comparison-content .also-compare ul {
    margin-top: 0.5rem;
}

/* Horizontal rule */
.comparison-content hr {
    margin: 3rem 0;
    border: none;
    border-top: 2px solid #e5e7eb;
}

/* Strong text in paragraphs */
.comparison-content p strong {
    color: #111827;
    font-weight: 600;
}

/* Highlight question styling */
.comparison-content .highlight-question {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: #f0f9ff;
    border-left: 4px solid #3b82f6;
    border-radius: 0.5rem;
}

/* Subtitle for headers */
.comparison-content .subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    font-weight: 400;
    font-style: italic;
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .comparison-content .decision-snapshot,
    .comparison-content .two-col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .comparison-content table.table,
    .comparison-content table.table-compare {
        font-size: 0.875rem; /* Even smaller on mobile */
    }

    .comparison-content table.table th,
    .comparison-content table.table-compare th,
    .comparison-content table.table td,
    .comparison-content table.table-compare td {
        padding: 0.75rem 1rem;
    }

    .comparison-content .cta-row {
        flex-direction: column;
    }

    .comparison-content .cta-row .btn {
        width: 100%;
        text-align: center;
    }
}


/* Table cells with checkboxes - text under checkbox */
.comparison-content table.table td > div:first-child,
.comparison-content table.table-compare td > div:first-child {
    text-align: center;
    margin-bottom: 0.25rem;
    font-size: 1.25rem;
}

.comparison-content table.table td > div.muted,
.comparison-content table.table-compare td > div.muted {
    text-align: center;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

/* Red X for missing features */
.comparison-content table.table .table-x,
.comparison-content table.table-compare .table-x {
    color: #dc2626 !important;
    font-size: 1.25rem;
    font-weight: bold;
    display: inline-block;
}

/* Highlight question styling */
.comparison-content .highlight-question {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background-color: #f0f9ff;
    border-left: 4px solid #3b82f6;
    border-radius: 0.5rem;
}

/* Subtitle for headers */
.comparison-content .subtitle {
    font-size: 0.9375rem;
    color: #6b7280;
    font-weight: 400;
    font-style: italic;
    margin-top: -0.75rem;
    margin-bottom: 1.5rem;
}

/* SaaS Experts brand colors - slate blue #1e3a5f */
.hero-gradient {
    background: linear-gradient(135deg, #2d4a6f 0%, #1e3a5f 100%) !important;
}
.btn-primary {
    background: linear-gradient(135deg, #2d4a6f 0%, #1e3a5f 100%) !important;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1e3a5f 0%, #162d47 100%) !important;
    box-shadow: 0 10px 25px rgba(30, 58, 95, 0.3) !important;
}
nav .btn-primary {
    background: linear-gradient(135deg, #2d4a6f 0%, #1e3a5f 100%) !important;
}
nav .btn-primary:hover {
    background: linear-gradient(135deg, #1e3a5f 0%, #162d47 100%) !important;
    box-shadow: 0 10px 25px rgba(30, 58, 95, 0.4) !important;
}

/* Home page product cards - equal height, link flush to bottom */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.product-card__logo {
    flex-shrink: 0;
    border-radius: 16px 16px 0 0;
}
.product-card__body {
    flex: 1 1 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.product-card__body .mt-auto {
    margin-top: auto;
}
.product-card__img {
    transition: transform 0.3s ease;
}
.product-card:hover .product-card__img {
    transform: scale(1.05);
}