/* GAR / xGAR knowledge base — triple-column affiliate layout
   Positioning uses display:table / inline-block / float per spec,
   avoiding flex/grid so presentation stays stable across engines. */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: #1a1a1a;
  background: #f7f6f3;
  line-height: 1.6;
}

a { color: #8c1d1d; }

/* Header banner */
.header-banner {
  display: table;
  width: 100%;
  table-layout: fixed;
  background: #12213b;
  border-bottom: 4px solid #8c1d1d;
}

.banner-slot {
  display: table-cell;
  width: 50%;
  padding: 18px 24px;
  vertical-align: middle;
  text-decoration: none;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.banner-slot:last-child { border-right: none; }

.banner-eyebrow {
  display: block;
  font-size: 0.75em;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e8c46b;
  margin-bottom: 4px;
}

.banner-title {
  display: block;
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 6px;
}

.banner-cta {
  display: block;
  font-size: 0.85em;
  color: #e8c46b;
}

/* Triple-column layout */
.layout {
  display: table;
  width: 100%;
  table-layout: fixed;
  max-width: 1200px;
  margin: 0 auto;
}

.sidebar,
.content {
  display: table-cell;
  vertical-align: top;
  padding: 20px 16px;
}

.sidebar--left { width: 200px; background: #efece3; }
.sidebar--right { width: 220px; background: #efece3; }
.content { width: auto; background: #fff; padding: 32px 40px; }

.sidebar-heading {
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #12213b;
  border-bottom: 2px solid #8c1d1d;
  padding-bottom: 8px;
  margin-top: 0;
}

.product-card {
  display: block;
  background: #fff;
  border: 1px solid #ddd8cc;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 16px;
  text-decoration: none;
  color: #1a1a1a;
}

.product-card:hover { border-color: #8c1d1d; }

.product-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 8px;
}

.product-name {
  display: block;
  font-weight: bold;
  font-size: 0.95em;
  margin-bottom: 6px;
}

.product-blurb {
  display: block;
  font-size: 0.82em;
  color: #555;
  margin-bottom: 6px;
}

.product-price {
  display: block;
  font-size: 0.9em;
  font-weight: bold;
  color: #12213b;
  margin-bottom: 6px;
}

.product-price:empty { display: none; }

.product-cta {
  display: block;
  font-size: 0.82em;
  color: #8c1d1d;
  font-weight: bold;
}

/* Main content typography */
.content h1 {
  font-size: 2em;
  margin-top: 0;
  color: #12213b;
}

.content .lede {
  font-size: 1.1em;
  color: #444;
  border-left: 3px solid #8c1d1d;
  padding-left: 16px;
}

.content h2 {
  color: #12213b;
  border-bottom: 1px solid #ddd8cc;
  padding-bottom: 6px;
  margin-top: 2.2em;
}

.formula {
  display: table;
  width: 100%;
  margin: 1.2em 0;
  padding: 16px;
  background: #f7f6f3;
  border: 1px solid #ddd8cc;
  text-align: center;
}

.formula .math,
.formula-terms .math {
  font-style: italic;
  font-size: 1.15em;
}

.formula-terms {
  list-style: none;
  padding-left: 0;
}

.formula-terms li {
  padding: 4px 0;
  border-bottom: 1px dotted #ddd8cc;
}

.site-footer {
  clear: both;
  text-align: center;
  padding: 20px;
  font-size: 0.8em;
  color: #777;
  background: #efece3;
}

/* Responsive: stack columns below tablet width */
@media (max-width: 860px) {
  .header-banner,
  .banner-slot,
  .layout,
  .sidebar,
  .content {
    display: block;
    width: auto;
  }

  .banner-slot {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }
}
