/* Clean styles for PAA answer content - minimal and theme-friendly */

/* Tables */
.answer-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
}

.answer-content table td,
.answer-content table th {
    padding: 8px 12px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

.answer-content table th {
    font-weight: 600;
    background-color: #f5f5f5;
}

.answer-content table tr:nth-child(even) {
    background-color: #fafafa;
}

/* Lists */
.answer-content ul,
.answer-content ol {
    margin: 10px 0;
    padding-left: 24px;
}

.answer-content li {
    margin: 6px 0;
    line-height: 1.6;
}

/* Headings */
.answer-content h1,
.answer-content h2,
.answer-content h3,
.answer-content h4 {
    margin: 16px 0 8px 0;
    font-weight: 600;
}

.answer-content h1 { font-size: 18px; }
.answer-content h2 { font-size: 16px; }
.answer-content h3 { font-size: 15px; }
.answer-content h4 { font-size: 14px; }

/* Paragraphs and text */
.answer-content p {
    margin: 8px 0;
    line-height: 1.6;
}

.answer-content strong,
.answer-content b {
    font-weight: 600;
}

/* Divs with specific content structures */
.answer-content > div {
    margin: 8px 0;
}

/* Code blocks */
.answer-content code,
.answer-content pre {
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 13px;
}

.answer-content pre {
    padding: 12px;
    overflow-x: auto;
}

/* Links */
.answer-content a {
    color: #1a73e8;
    text-decoration: none;
}

.answer-content a:hover {
    text-decoration: underline;
}

/* Images */
.answer-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px 0;
}

/* Google's table structures with CgE3Ac container */
/* Container holding the table */
.answer-content .CgE3Ac {
    margin: 12px 0;
    overflow-x: auto;
}

/* The actual table element inside CgE3Ac */
.answer-content .CgE3Ac table,
.answer-content table.LnMnt {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border: 1px solid #e0e0e0;
}

/* All table cells */
.answer-content .CgE3Ac table td,
.answer-content .CgE3Ac table th,
.answer-content table.LnMnt td,
.answer-content table.LnMnt th {
    padding: 10px 12px;
    text-align: left;
    border: 1px solid #e0e0e0;
}

/* Header cells (thead or cells with An9Aqc class) */
.answer-content .CgE3Ac table thead td,
.answer-content .CgE3Ac table thead th,
.answer-content .CgE3Ac table td:has(.An9Aqc),
.answer-content table.LnMnt thead td,
.answer-content table.LnMnt thead th,
.answer-content table.LnMnt td:has(.An9Aqc) {
    font-weight: 600;
    background-color: #f5f5f5;
}

/* Alternating row colors for tbody */
.answer-content .CgE3Ac table tbody tr:nth-child(even),
.answer-content table.LnMnt tbody tr:nth-child(even) {
    background-color: #fafafa;
}

/* Nested divs inside table cells should not add extra spacing */
.answer-content .CgE3Ac table .hfgVwf,
.answer-content table.LnMnt .hfgVwf {
    padding: 0;
    margin: 0;
}

/* Inner content wrappers */
.answer-content .CgE3Ac .An9Aqc,
.answer-content .CgE3Ac .H66NU {
    font-weight: inherit;
}

/* Text content inside cells */
.answer-content .ilUpNd {
    width: 100%;
    word-break: break-word;
}

/* "List" label styling (if present) - only for actual labels in kCrYT divs, but NOT headings */
.answer-content .kCrYT .XV43Ef {
    font-weight: 600;
    color: #5f6368;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Headings inside kCrYT override the label styling */
.answer-content .kCrYT h2 .XV43Ef,
.answer-content .kCrYT h2 .XV43Ef .vA9HTb,
.answer-content .kCrYT h2 .XV43Ef .MDvRSc {
    font-weight: 600;
    font-size: 16px;
    text-transform: none;
    letter-spacing: normal;
    color: inherit;
}

/* XV43Ef in content areas (X7NTVe tables, tHmfQe cells) should be normal */
.answer-content .X7NTVe .XV43Ef,
.answer-content .tHmfQe .XV43Ef,
.answer-content .am3QBf .XV43Ef {
    font-weight: normal;
    color: inherit;
    font-size: 14px;
    text-transform: none;
    letter-spacing: normal;
}

/* X7NTVe divs used as list items */
.answer-content .X7NTVe {
    margin: 8px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.6;
    font-size: 14px;
}

/* Add bullet point before X7NTVe list items ONLY if they don't have numbers (pkr8ib) */
.answer-content .X7NTVe:not(:has(.pkr8ib))::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: inherit;
    font-size: 14px;
}

/* Numbered list items with pkr8ib - style the number container and align content */
.answer-content .X7NTVe .am3QBf {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Number container styling */
.answer-content .pkr8ib {
    font-weight: 600;
    color: inherit;
    flex-shrink: 0;
    min-width: 20px;
}

/* Heading inside XV43Ef should remain as heading */
.answer-content h2 .XV43Ef {
    font-weight: 600;
    font-size: 16px;
    text-transform: none;
    letter-spacing: normal;
    color: inherit;
}

/* Heading text spans (vA9HTb, MDvRSc) - ensure proper size */
.answer-content .vA9HTb,
.answer-content .MDvRSc {
    font-size: inherit;
    text-transform: none;
}

/* Google's list structures with metadata */
/* List container */
.answer-content .i8Z77e {
    list-style: disc;
    margin: 10px 0;
    padding-left: 24px;
}

/* List items - match X7NTVe styling */
.answer-content .TrT0Xe {
    margin: 8px 0;
    line-height: 1.6;
    font-size: 14px;
}

/* Ensure list bullets have consistent color */
.answer-content .i8Z77e li::marker {
    color: inherit;
}

/* Metadata footer (source link, dot separator, date) */
.answer-content .u9iNfb {
    margin-top: 16px;
    font-size: 13px;
    color: #5f6368;
}

/* Source link - align with list items */
.answer-content .ZGh7Vc {
    padding-left: 24px;
    display: inline-block;
}

.answer-content .ZGh7Vc a {
    color: #1a73e8;
    text-decoration: none;
    font-size: 13px;
}

.answer-content .ZGh7Vc a:hover {
    text-decoration: underline;
}

/* Hide dot separator */
.answer-content .rvIhN {
    display: none;
}

/* Date aligned with link */
.answer-content .Od5Jsd {
    display: inline-block;
    padding-left: 24px;
    color: #5f6368;
    font-size: 13px;
    margin-top: 4px;
}

