/*
Theme Name: SoftwareGuru Master
Theme URI: https://softwareguru.com
Author: SoftwareGuru Advisory
Description: Institutional editorial block theme for SoftwareGuru Multisite Network (Fractional CTO, PE Tech Diligence, and SME Properties).
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
Text Domain: softwareguru
*/

/* ==========================================================================
   1. Typography & Tabular Numeral Polish
   ========================================================================== */

.has-mono-font-family,
.mono-eyebrow,
.mono-badge,
.table-editorial,
.tabular-nums {
  font-feature-settings: "tnum" 1, "zero" 1;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   2. Monospaced Tags, Eyebrows & Metadata Labels
   ========================================================================== */

/* Naked pre-header eyebrow: e.g. [01 // PRE-LOI DILIGENCE] */
.mono-eyebrow {
  display: inline-block;
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wp--preset--color--accent);
  line-height: 1.2;
  margin-bottom: var(--wp--preset--spacing--30);
}

/* Hairline boxed badge: status chips, scorecards, metric tags */
.mono-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.3rem 0.55rem;
  background-color: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--main);
  border: 1px solid var(--wp--preset--color--border);
  border-radius: 0;
  white-space: nowrap;
}

/* Variant: Accent-bordered badge (dynamically adapts to subsite accent) */
.mono-badge--accent {
  background-color: transparent;
  color: var(--wp--preset--color--accent);
  border-color: var(--wp--preset--color--accent);
}

/* ==========================================================================
   3. Editorial Hairline Tables (Financial / Audit Format)
   ========================================================================== */

.wp-block-table.table-editorial table,
table.table-editorial {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  border-top: 1px solid var(--wp--preset--color--main);
  border-bottom: 1px solid var(--wp--preset--color--main);
  border-left: none;
  border-right: none;
  font-size: var(--wp--preset--font-size--sm);
  line-height: 1.5;
}

.wp-block-table.table-editorial th,
table.table-editorial th {
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wp--preset--color--muted);
  text-align: left;
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--wp--preset--color--border);
  background: transparent;
}

.wp-block-table.table-editorial td,
table.table-editorial td {
  padding: 1rem 1rem 1rem 0;
  border-top: 1px solid var(--wp--preset--color--border);
  border-bottom: none;
  border-left: none;
  border-right: none;
  vertical-align: top;
  color: var(--wp--preset--color--main);
}

.wp-block-table.table-editorial td.is-num,
.wp-block-table.table-editorial th.is-num {
  text-align: right;
  padding-right: 0;
  font-family: var(--wp--preset--font-family--mono);
}

.wp-block-table.table-editorial th:last-child,
.wp-block-table.table-editorial td:last-child {
  padding-right: 0;
}

.table-editorial td small,
.table-editorial td .cell-meta {
  display: block;
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--muted);
  margin-top: 0.25rem;
}

/* ==========================================================================
   4. Structural Hairline Borders & Split Diligence Rows
   ========================================================================== */

.border-hairline-t {
  border-top: 1px solid var(--wp--preset--color--border);
}

.border-hairline-b {
  border-bottom: 1px solid var(--wp--preset--color--border);
}

.border-hairline-box {
  border: 1px solid var(--wp--preset--color--border);
  padding: var(--wp--preset--spacing--50);
  background-color: var(--wp--preset--color--base);
}

.border-accent-l {
  border-left: 2px solid var(--wp--preset--color--accent);
  padding-left: var(--wp--preset--spacing--40);
}

.diligence-index-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--wp--preset--spacing--50);
  padding: var(--wp--preset--spacing--40) 0;
  border-top: 1px solid var(--wp--preset--color--border);
}

@media (max-width: 768px) {
  .diligence-index-row {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--20);
  }
}

/* ==========================================================================
   5. Centralized Multisite Network Navigation Bar
   ========================================================================== */

.sg-network-strip {
  border-bottom: 1px solid var(--wp--preset--color--border);
  background-color: var(--wp--preset--color--surface);
  padding: 0.35rem var(--wp--preset--spacing--50);
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--xs);
  letter-spacing: 0.03em;
}

.sg-network-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sg-network-nav__item {
  margin: 0;
  padding: 0;
}

.sg-network-nav__link {
  color: var(--wp--preset--color--muted);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0;
  display: inline-block;
  transition: color 0.15s ease-in-out;
}

.sg-network-nav__link:hover {
  color: var(--wp--preset--color--main);
}

/* Active Domain Tab: Dynamically inherits each subsite's accent color */
.sg-network-nav__link.is-active {
  color: var(--wp--preset--color--accent);
  box-shadow: 0 2px 0 0 var(--wp--preset--color--accent);
  font-weight: 600;
}

.sg-subsite-header {
  border-bottom: 1px solid var(--wp--preset--color--border);
  padding-top: var(--wp--preset--spacing--40);
  padding-bottom: var(--wp--preset--spacing--40);
}

/* ==========================================================================
   6. Explicit Executive Split Grids (Hero & Forensic Sections)
   ========================================================================== */

.sg-hero-grid {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--wp--preset--spacing--70);
  align-items: start;
}

.sg-split-grid {
  display: grid !important;
  grid-template-columns: 1fr 1.25fr;
  gap: var(--wp--preset--spacing--70);
  align-items: start;
}

@media (max-width: 900px) {
  .sg-hero-grid,
  .sg-split-grid {
    grid-template-columns: 1fr;
    gap: var(--wp--preset--spacing--50);
  }
}

.sg-local-nav {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--wp--preset--font-family--mono);
  font-size: var(--wp--preset--font-size--xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sg-local-nav a {
  color: var(--wp--preset--color--main);
  text-decoration: none;
}

.sg-local-nav a:hover {
  color: var(--wp--preset--color--accent);
}
