/**
 * Jiblotech 2.0
 * Standard Page Styles
 */

/* ==========================================
   PAGE WRAPPER
   ========================================== */

.default-page {
    padding: clamp(4rem, 8vw, 8rem) 0;
    background: var(--jb-background);
    color: var(--jb-text-primary);
}

.container--narrow {
    max-width: 800px;
    margin-inline: auto;
}

/* ==========================================
   EDITORIAL CONTENT
   ========================================== */

.editorial-content {
    font-family: var(--jb-font-body);
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--jb-text-primary);
}

.editorial-content > *:first-child {
    margin-top: 0;
}

.editorial-content > *:last-child {
    margin-bottom: 0;
}

.editorial-content p {
    margin-bottom: 1.5rem;
}

.editorial-content h2,
.editorial-content h3,
.editorial-content h4,
.editorial-content h5,
.editorial-content h6 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    color: var(--jb-white);
}

.editorial-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.editorial-content h3 {
    font-size: clamp(1.4rem, 3vw, 1.75rem);
}

.editorial-content h4 {
    font-size: 1.25rem;
}

.editorial-content a {
    color: var(--jb-green);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(24, 169, 87, 0.4);
    transition: text-decoration-color var(--jb-duration-fast) var(--jb-ease), color var(--jb-duration-fast) var(--jb-ease);
}

.editorial-content a:hover,
.editorial-content a:focus {
    color: var(--jb-green-bright);
    text-decoration-color: var(--jb-green-bright);
}

.editorial-content ul,
.editorial-content ol {
    margin: 0 0 1.5rem 0;
    padding-left: 1.5rem;
}

.editorial-content li {
    margin-bottom: 0.5rem;
}

.editorial-content li > ul,
.editorial-content li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.editorial-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.5rem 1.5rem 2rem;
    border-left: 3px solid var(--jb-green);
    background: var(--jb-black);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--jb-white);
}

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

.editorial-content table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.editorial-content th,
.editorial-content td {
    padding: 1rem;
    border-bottom: 1px solid var(--jb-border);
    text-align: left;
}

.editorial-content th {
    font-family: var(--jb-font-heading);
    font-weight: 600;
    color: var(--jb-white);
    background: var(--jb-black);
}

.editorial-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 2rem 0;
}

.editorial-content figure {
    margin: 2rem 0;
}

.editorial-content figure img {
    margin: 0;
}

.editorial-content figcaption {
    margin-top: 0.75rem;
    font-family: var(--jb-font-mono);
    font-size: 0.8rem;
    color: var(--jb-text-subtle);
    text-align: center;
}

.editorial-content code {
    font-family: var(--jb-font-mono);
    font-size: 0.85em;
    background: var(--jb-black);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    color: var(--jb-accent-coral);
}

.editorial-content pre {
    background: var(--jb-black);
    padding: 1.5rem;
    border-radius: 6px;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    border: 1px solid var(--jb-border);
}

.editorial-content pre code {
    background: transparent;
    padding: 0;
    color: var(--jb-white);
    font-size: 0.9em;
}

.editorial-content hr {
    margin: 3rem 0;
    border: 0;
    height: 1px;
    background: var(--jb-border);
}
