/* ============================================================
   POST CONTENT TYPOGRAPHY
   Rich text styling for blog posts and page editor content
   ============================================================ */

.post-content,
.entry-content,
.page-content {
    font-size: 16px;
    line-height: 1.85;
    color: var(--grey);
    font-weight: 300;
}

.post-content h2,
.entry-content h2 {
    font-family: var(--font-head);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    color: var(--white);
    margin: 48px 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.post-content h3,
.entry-content h3 {
    font-family: var(--font-head);
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 600;
    color: var(--white);
    margin: 36px 0 12px;
    letter-spacing: -0.015em;
}

.post-content h4,
.entry-content h4 {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 600;
    color: var(--white);
    margin: 28px 0 10px;
}

.post-content p,
.entry-content p {
    margin-bottom: 20px;
}

.post-content a,
.entry-content a {
    color: var(--blue-light);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition);
}

.post-content a:hover,
.entry-content a:hover {
    color: var(--white);
}

/* Blockquote */
.post-content blockquote,
.entry-content blockquote {
    border-left: 3px solid var(--blue);
    padding: 16px 24px;
    margin: 32px 0;
    background: var(--blue-dim2);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    font-size: 17px;
    color: var(--white);
    line-height: 1.7;
}

.post-content blockquote cite,
.entry-content blockquote cite {
    display: block;
    font-size: 12px;
    color: var(--grey-2);
    font-style: normal;
    margin-top: 10px;
}

/* Lists */
.post-content ul,
.post-content ol,
.entry-content ul,
.entry-content ol {
    margin: 20px 0 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.post-content ul { list-style: none; }

.post-content ul li::before {
    content: '→';
    color: var(--blue);
    margin-right: 10px;
    font-weight: 600;
}

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

.post-content li,
.entry-content li {
    font-size: 15px;
    line-height: 1.7;
}

/* Code inline */
.post-content code,
.entry-content code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: var(--navy-3);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 7px;
    color: var(--blue-light);
}

/* Code block */
.post-content pre,
.entry-content pre {
    background: var(--navy-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    overflow-x: auto;
    margin: 28px 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.8;
    color: var(--grey);
}

.post-content pre code,
.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
}

/* Images */
.post-content img,
.entry-content img {
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin: 28px auto;
    display: block;
}

.post-content figure,
.entry-content figure {
    margin: 32px 0;
}

.post-content figcaption,
.entry-content figcaption {
    font-size: 12px;
    color: var(--grey-2);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* Tables */
.post-content table,
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
    font-size: 14px;
}

.post-content th,
.entry-content th {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--grey-2);
    padding: 10px 14px;
    border-bottom: 2px solid var(--border);
    text-align: left;
}

.post-content td,
.entry-content td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--grey);
    vertical-align: top;
}

.post-content tr:hover td,
.entry-content tr:hover td {
    background: var(--navy-3);
}

/* Horizontal rule */
.post-content hr,
.entry-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
}

/* Callout / note box (use wp-block-quote or add class) */
.post-content .callout,
.entry-content .callout {
    background: var(--blue-dim);
    border: 1px solid var(--border-blue);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin: 32px 0;
    font-size: 14px;
    color: var(--grey);
    line-height: 1.7;
}

/* WordPress alignment classes */
.alignleft  { float: left;  margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { text-align: center; margin: 0 auto; }
.alignwide  { width: calc(100% + 96px); margin-left: -48px; }

/* Gutenberg core block overrides */
.wp-block-separator {
    border-top: 1px solid var(--border) !important;
    opacity: 1;
}

.wp-block-pullquote {
    border-top: 3px solid var(--blue);
    border-bottom: 3px solid var(--blue);
    padding: 24px 0;
    text-align: center;
}

.wp-block-pullquote blockquote {
    border: none;
    background: none;
    border-radius: 0;
    font-size: 20px;
    padding: 0;
}
