/*
Theme Name:   O-Matic Child
Theme URI:    https://o-matic.io
Description:  O-Matic Child Theme — built on Hello Elementor. All site customizations live here. Hello Elementor can update freely without touching this theme.
Author:       Jimmy Walker
Author URI:   https://o-matic.io
Template:     hello-elementor
Version:      1.1.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  omatic-child
*/

/*
  O-Matic Brand Tokens
  ----------------------
  Teal:       #00B5AD
  Gold:       #FFD33D
  Black:      #0a0a0a
  White:      #f0f0f0
  Body text:  #cccccc
  Dim:        #888888
  Muted:      #555555

  Fonts: Montserrat (headlines), Nunito Sans (body), Space Mono (mono/labels)
*/

/* ----------------------------------------
   Base Overrides
   ---------------------------------------- */

body {
  background-color: #0a0a0a;
  color: #cccccc;
  font-family: 'Nunito Sans', sans-serif;
}

/* Remove Hello Elementor's default header/footer — Elementor Theme Builder handles these */
.site-header,
.site-footer {
  display: none;
}

/* Ensure Elementor full-width sections work correctly */
.elementor-section.elementor-section-stretched {
  width: 100% !important;
  left: 0 !important;
}

/* ----------------------------------------
   WordPress Block Editor — Dark Defaults
   These override WP core block styles so
   post content renders correctly on dark
   backgrounds without patching per-page.
   ---------------------------------------- */

/* --- Body copy inside post content --- */
.entry-content,
.wp-block,
.block-editor-block-list__layout {
  color: #cccccc;
  background: transparent;
}

/* --- Headings --- */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: #f0f0f0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

/* --- Paragraphs --- */
.entry-content p {
  color: #cccccc;
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

/* --- Links --- */
.entry-content a {
  color: #00B5AD;
  text-decoration: none;
}
.entry-content a:hover {
  color: #FFD33D;
}

/* --- Blockquote (core) --- */
.entry-content blockquote,
.entry-content .wp-block-quote,
.entry-content .wp-block-pullquote {
  background: rgba(0, 181, 173, 0.06);
  border-left: 3px solid #00B5AD;
  border-right: none;
  border-top: none;
  border-bottom: none;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-radius: 0 6px 6px 0;
}

.entry-content blockquote p,
.entry-content .wp-block-quote p,
.entry-content .wp-block-pullquote p {
  color: #cccccc;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
}

.entry-content blockquote cite,
.entry-content .wp-block-quote cite {
  color: #555555;
  font-size: 0.8rem;
  font-style: normal;
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.75rem;
  display: block;
}

/* --- Callout / Group blocks --- */
.entry-content .wp-block-group,
.entry-content .wp-block-group__inner-container {
  background: rgba(0, 181, 173, 0.04);
  border: 1px solid rgba(0, 181, 173, 0.15);
  border-radius: 8px;
  padding: 1.5rem;
  color: #cccccc;
}

/* --- Cover block --- */
.entry-content .wp-block-cover {
  background-color: #111111;
}

/* --- Code blocks --- */
.entry-content code {
  background: #111111;
  color: #00B5AD;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 0.85em;
  font-family: 'Space Mono', monospace;
}

.entry-content pre,
.entry-content .wp-block-code {
  background: #111111;
  color: #cccccc;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  font-family: 'Space Mono', monospace;
  font-size: 0.85rem;
  line-height: 1.7;
}

.entry-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #cccccc;
}

/* --- Tables --- */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  color: #cccccc;
}

.entry-content th {
  background: rgba(0, 181, 173, 0.1);
  color: #00B5AD;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(0, 181, 173, 0.2);
}

.entry-content td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.entry-content tr:last-child td {
  border-bottom: none;
}

/* --- Separator / HR --- */
.entry-content hr,
.entry-content .wp-block-separator {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 2.5rem 0;
}

/* --- Image captions --- */
.entry-content figcaption,
.entry-content .wp-element-caption {
  color: #555555;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  text-align: center;
  margin-top: 0.5rem;
}

/* --- Lists --- */
.entry-content ul,
.entry-content ol {
  color: #cccccc;
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
  line-height: 1.75;
}

/* ----------------------------------------
   Elementor Post Content Widget Overrides
   Ensures the theme-post-content widget
   inherits the same dark defaults above.
   ---------------------------------------- */

.elementor-widget-theme-post-content .entry-content,
.elementor-widget-theme-post-content p,
.elementor-widget-theme-post-content li {
  color: #cccccc;
}

.elementor-widget-theme-post-content h1,
.elementor-widget-theme-post-content h2,
.elementor-widget-theme-post-content h3,
.elementor-widget-theme-post-content h4 {
  color: #f0f0f0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
}

.elementor-widget-theme-post-content a {
  color: #00B5AD;
}

.elementor-widget-theme-post-content a:hover {
  color: #FFD33D;
}

/* ----------------------------------------
   Publications Shortcode — omatic_publications
   Matches Jetpack-style related posts grid:
   3-col card layout, dark surface, clean type
   ---------------------------------------- */

.omatic-pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 0;
  margin: 0;
}

@media (max-width: 768px) {
  .omatic-pub-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .omatic-pub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.omatic-pub-card {
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.omatic-pub-card a.omatic-pub-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #00B5AD;
  text-decoration: none;
  line-height: 1.35;
  display: block;
}

.omatic-pub-card a.omatic-pub-title:hover {
  color: #FFD33D;
}

.omatic-pub-card .omatic-pub-excerpt {
  font-size: 0.875rem;
  color: #888888;
  line-height: 1.6;
  margin: 0;
}

.omatic-pub-card .omatic-pub-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: #555555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.omatic-pub-card .omatic-pub-cat {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #555555;
}
