/*!
Theme Name: Ojambo Store
Template: twentytwentyfive
Theme URI: https://ojambo.store
Author: Edward Ojambo
Author URI: https://ojambo.store
Description: 2026 Financial Frameworks & Asset Sovereignty design.
Version: 3.0.0
Tested up to: 6.9
Requires PHP: 8.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ojambo
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

*/

:root {
    --wp--preset--color--contrast: #111111;
    --wp--preset--color--base: #ffffff;
    --wp--preset--color--accent: #005a87;
    --wp--preset--spacing--lg: 4rem;
}

/* Base Body Styles */
body { 
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif; 
    line-height: 1.7; 
    color: var(--wp--preset--color--contrast); 
    margin: 0; 
    background: var(--wp--preset--color--base); 
    font-weight: unset;
    letter-spacing: initial;
}

h1, h2, h3, h4, h5, h6 {
   font-weight: bold;
   letter-spacing: initial;
   line-height: initial;
}
.post-content {
    font-size: 1.15rem;
    color: #333;
}
.container { 
    max-width: 1140px; 
    margin: 0 auto; 
    padding: 0 2rem; 
}
main .entry-content {
   font-size: 1.15rem;
   color: #333;
}

/* Header */
header { 
   /*padding: 2.5rem 0; */
   padding-bottom: 1.5rem;
   border-bottom: 1px solid #eee; 
}
header .container {
   display: flex;
   align-items: center;
   justify-content:
   flex-start; gap: 20px;
}
header .container .logo { 
   display: inline-block;
   font-size: 1.6rem; 
   font-weight: 900; 
   letter-spacing: -1px; 
   text-decoration: none; 
   color: #000; 
   text-transform: uppercase; 
}
header .container .logo img {
   height: 60px;
   width: auto;   
}
header .container .tagline { 
   font-size: 0.85rem; 
   color: #666; 
   /*margin-top: 4px; */
}

/* Hero Section */
main .wp-block-post-template { 
    /*padding: 4rem 0;*/ 
    border-bottom: 1px solid #f0f0f0; 
}

main .wp-block-post-template h1 { 
    font-size: 3.2rem; 
    line-height: 1.1; 
    margin-bottom: 1rem; 
    font-weight: 800; 
}

main .wp-block-post-template p { 
    font-size: 1.2rem; 
    color: #444; 
    max-width: 700px; 
    margin-bottom: 2rem; 
}

/* Layout Grid */
.sidebar-framework {
    position: sticky;
    top: 20px;
}
/* Articles & Headings */
article { 
    margin-bottom: 4rem; 
}
/* ojambo.store Technical Table Styling */

/* Container for horizontal scrolling on mobile */
.wp-block-table {
    width: 100%;
    margin-bottom: 2.5rem;
    border-collapse: collapse;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    overflow-x: auto;
    display: block;
}

.wp-block-table table {
    width: 100%;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
}

/* Header Styling - Institutional Slate */
.wp-block-table thead th {
    background-color: #1a202c; /* Deep Slate */
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1.25rem 1rem;
    text-align: left;
    font-weight: 700;
    border-bottom: 3px solid #3182ce; /* Ionized Cobalt accent */
}

/* Cell Spacing and Borders */
.wp-block-table th, 
.wp-block-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    line-height: 1.5;
}

/* Zebra Striping for Readability/Dwell Time */
.wp-block-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Hover Effect for User Engagement */
.wp-block-table tbody tr:hover {
    background-color: #edf2f7;
    transition: background-color 0.2s ease;
}

/* Bold the first column for Technical Specs */
.wp-block-table td:first-child {
    font-weight: 600;
    color: #2d3748;
    background-color: rgba(49, 130, 206, 0.05);
}

/* Container for the code blocks */
pre {
   background-color: #1e1e1e; /* Deep charcoal for low eye strain */
   color: #d4d4d4; /* Soft white text */
   padding: 1.5rem;
   border-radius: 8px;
   border: 1px solid #333;
   overflow-x: auto; /* Handles long commands on mobile */
   margin: 1.5rem 0;
   line-height: 1.5;
   font-family: 'Fira Code', 'Cascadia Code', 'Ubuntu Mono', monospace;
   font-size: 0.95rem;
   box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

/* Inline code styling */
code {
   font-family: 'Fira Code', monospace;
   background-color: #2d2d2d;
   color: #4fc1ff; /* Terminal blue for commands */
   padding: 0.2rem 0.4rem;
   border-radius: 4px;
   font-size: 0.9em;
}

/* Specific highlights for block code */
pre code {
   background-color: transparent;
   padding: 0;
   color: inherit;
   display: block;
}

/* Syntax-ish highlighting for readability */
pre code b { color: #569cd6; font-weight: normal; } /* Keywords/Commands */
pre code i { color: #6a9955; font-style: italic; } /* Comments */
pre code span { color: #ce9178; } /* Strings/Variables */

/* Custom Scrollbar for a polished look */
pre::-webkit-scrollbar {
   height: 8px;
}
pre::-webkit-scrollbar-track {
   background: #1e1e1e;
}
pre::-webkit-scrollbar-thumb {
   background: #444;
   border-radius: 4px;
}
pre::-webkit-scrollbar-thumb:hover {
   background: #555;
}

.framework-categories .current-cat a[aria-current="page"] {
   font-weight: bold;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .wp-block-table {
        font-size: 0.85rem;
    }
    .wp-block-table th, 
    .wp-block-table td {
        padding: 0.75rem 0.5rem;
    }
}
body.single-post main .wp-block-image.size-large img {
   max-width: 100%;
   max-width: stretch;
}
.label { 
    font-size: 0.7rem; 
    font-weight: 800; 
    color: var(--wp--preset--color--accent); 
    text-transform: uppercase; 
    margin-bottom: 8px; 
    display: block; 
}

h2 { 
    font-size: 2.2rem; 
    margin: 10px 0; 
    letter-spacing: -0.5px; 
}

h2 a { 
    text-decoration: none; 
    color: inherit; 
}

h2 a:hover { 
    color: var(--wp--preset--color--accent); 
}
main .author-bio {
   background: #fafafa;
   border: 1px solid #eee;
   padding: 2.5rem;
   margin-top: 4rem;
   border-left: 5px solid var(--wp--preset--color--accent);
}
main .author-bio::after {
   content: '';
   display: block;
   clear: both;
}
main .author-bio img.avatar {
   float: left;
   margin: 0 1rem 1rem 0;
}
main .author-bio .author-info .author-title {
   font-size: 1.4rem;
   font-weight: 800;
   margin: 0 0 10px 0;
}
main .author-bio .author-info .author-description,
main  .author-bio .author-info p {
   font-size: 0.8rem;
   color: #555;
   margin-bottom: 1.5rem;
}
main .author-bio .author-links {
   text-align: center;
   font-size: 0.8rem;
}

/* Framework Table */
.framework-table { 
    width: 100%; 
    border-collapse: collapse; 
    margin: 20px 0; 
    font-size: 0.95rem; 
}

.framework-table th { 
    background: #f4f4f4; 
    text-align: left; 
    padding: 12px; 
    border: 1px solid #eee; 
}

.framework-table td { 
    padding: 12px; 
    border: 1px solid #eee; 
}

.consultation-box {
   background: #f0f7fa;
   border: 1px solid #005a87;
   padding: 30px;
   margin: 40px 0;
   border-radius: 4px;
   display: flex;
   flex-wrap: wrap;
   align-items: center;
}
.consultation-box div:nth-of-type(1) {
   flex: 1;
   min-width: 300px;
   padding-right: 20px;
}
.consultation-box div:nth-of-type(1) h3 {
   color: #005a87;
   margin-top: 0;
}
.consultation-box div:nth-of-type(2) {
   flex: 0;
   min-width: 200px;
   text-align: center;
}
.consultation-box div:nth-of-type(2) a {
   background: #005a87;
   color: #fff;
   padding: 15px 25px;
   text-decoration: none;
   border-radius: 3px;
   font-weight: bold;
   display: inline-block;
}
.summary-box {
    background: #f9f9f9;
    border: 2px solid #005a87;
    padding: 25px;
    border-radius: 8px;
    margin: 30px 0;
    border-left: 10px solid #005a87;
}
.summary-box h3 {
   margin-top: 0;
   color: #005a87;
}
.summary-box ul {
    list-style: none;
    padding-left: 0;
}

/* Sidebar Widgets */
aside { 
    position: sticky; 
    top: 20px; 
}

.widget { 
    background: #fafafa; 
    padding: 1.5rem; 
    border: 1px solid #eee; 
    margin-bottom: 2rem; 
    border-radius: 4px; 
}

.widget h3 { 
    font-size: 0.9rem; 
    margin-top: 0; 
    text-transform: uppercase; 
    border-bottom: 2px solid #000; 
    padding-bottom: 5px; 
    margin-bottom: 15px; 
}
.widget ul {
   padding-left: 1rem;
   font-size: 0.85rem;
   line-height: 1.8;   
}

/* Footer */
footer { 
    background: #111; 
    color: #aaa; 
    padding: 4rem 0; 
    margin-top: 6rem; 
    font-size: 0.9rem; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 3rem; 
}
.footer-grid nav {
   display: flex;
   flex-direction: column;
   gap: 8px;   
}
.footer-bottom { 
    border-top: 1px solid #222; 
    margin-top: 3rem; 
    padding-top: 2rem; 
    text-align: center; 
    color: #666; 
}

/* Responsive */
@media (max-width: 850px) {
    main { grid-template-columns: 1fr; }
    main .wp-block-post-template h1 { font-size: 2.4rem; }
}