/* -------------------------------------------------------
   TOKENS (Design System)
   ------------------------------------------------------- */
:root {
  --border: #dee2e6;

  /* Domain colours */
  --behaviour: #1E88E5;
  --systems:   #F5A623;
  --intel:     #2a9d8f;

  /* Links */
  --link: #4A90E2;
--accent: #0b66c3;

  /* Layout */
  --center: 900px;

  /* Typography scale */
  --buzz-small: .9rem;
  --buzz-smaller: .8rem;
  --buzz-smallest: .75rem;

  /* Surfaces */
  --surface:   #fff;
}

/* -------------------------------------------------------
   GLOBAL RESET + BASE
   ------------------------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f5f5; /* light structural grey */
  margin: 0;
  padding: 0;
}

/* Links */
a {
  text-decoration: none;
}

.domain-info { color: var(--behaviour); }
.domain-buzz { color: var(--systems); }
.domain-ai   { color: var(--intel); }

/* -------------------------------------------------------
   NAVIGATION (CONSOLIDATED & CLEANED)
------------------------------------------------------- */

/* Collapsible nav background */
#buzzNav {
  background-color: var(--surface);
}

/* Nav container box */
.nav-box {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  width: 100%;
  border: 1px solid var(--border);
}

/* Section headings (The Way / 道) */
.nav-section-title, .way {
  text-align: center;
  padding: 1rem 0;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid var(--border);
}

.way small {
  display: block;
  font-size: .8rem;
  opacity: .7;
  margin-top: .25rem;
}

/* Nav list structure */
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Nav link items */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.25rem;
  text-decoration: none;
  color: inherit; /* use normal page text colour */
  border-radius: 4px;
}

/* Icon inside nav (Unified sizing & layout boundaries) */
.nav-link svg {
  width: 1rem;
  height: 1rem;
  margin-right: .5rem;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Hover state */
.nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* Active page track */
.nav-link.active {
  font-weight: 600;
  background: rgba(0, 0, 0, 0.08);
}
/* -------------------------------------------------------
   framework
------------------------------------------------------- */
table.framework {
  width: 100%;
  border-collapse: collapse;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  text-align: left;
}

table.framework th,
table.framework td {
  padding: 0.5rem 0.75rem;
  vertical-align: top;
}

/* Strong bottom border under header */
table.framework thead th {
  border-bottom: 2px solid #222;
  font-weight: 600;
}

/* Pencil row separators */
table.framework tbody tr td {
  border-bottom: 1px solid #ddd;
}

/* Remove border on last row */
table.framework tbody tr:last-child td {
  border-bottom: none;
}
/* Row hover: subtle transparent green */
table.framework tbody tr:hover td {
  background: rgba(104, 176, 28, 0.08); /* #68b01c with ~8% opacity */
  transition: background 0.15s ease-in-out;
}

/* -------------------------------------------------------
   HEADER
------------------------------------------------------- */

header {
  padding: 1rem 0;
  border-bottom: 1px solid #ddd;
}

header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* ==========================================================================
   FOOTER: CORE INFRASTRUCTURE
   ========================================================================== */

footer {
  padding: 1rem 0;
}

footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   FOOTER ELEMENTS: AVATAR, DOMAINS, & TITLE DIVIDER
   ========================================================================== */

.rf-avatar img {
  display: inline-block;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ddd;
  vertical-align: middle;
}

.rf-domains img {
  height: 24px; 
}

.footer-title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-title-line {
  width: 10%;
  border-top: 1px solid #ddd;
}

.footer-title-text {
  margin-left: 1rem;
  margin-right: 1rem;
  color: var(--buzz-color-text-muted-base);
}

/* ==========================================================================
   FOOTER ELEMENTS: CONTRIBUTOR & CONTACT ICONS
   ========================================================================== */

.buzz-footer-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.buzz-footer-icons img {
  display: block;
  height: 18px;
  width: auto;
  object-fit: contain;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

/* ==========================================================================
   EMBEDDED GRAPHICS: COST OF CHANGE COMPONENT
   ========================================================================== */

.coc-title-text { 
  font-family: sans-serif; 
  font-size: 19px !important; 
  font-weight: 600; 
  fill: #000000; 
}

.coc-axis-text { 
  font-family: sans-serif; 
  font-size: 15px !important; 
  fill: #000000; 
}

.coc-anno-text { 
  font-family: monospace;  
  font-size: 15px !important; 
  fill: #000000; 
}