/* =============================================================
   SITESMARTY.COM — HighLevel Posts Global Stylesheet v2
   Styled to match GBP guide design system
   Add to FluentSnippets — Location: All Single Posts / Frontend
   ============================================================= */

/* ── RESET & BASE ─────────────────────────────────────────── */
.ghl-post-wrap *,
.ghl-post-wrap *::before,
.ghl-post-wrap *::after {
  box-sizing: border-box;
}

.ghl-post-wrap {
  font-size: 17px;
  line-height: 1.75;
  color: #1a1a1a;
  max-width: 860px;
  margin: 0 auto;
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
.ghl-post-wrap p {
  margin-bottom: 1.1em;
}

.ghl-post-wrap h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #0d2a4a;
  margin: 2.4rem 0 0.8rem;
  line-height: 1.3;
}

.ghl-post-wrap h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0d2a4a;
  margin: 1.8rem 0 0.5rem;
  line-height: 1.3;
}

.ghl-post-wrap h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0d2a4a;
  margin: 1.4rem 0 0.4rem;
}

.ghl-post-wrap ul,
.ghl-post-wrap ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1em;
}

.ghl-post-wrap li {
  margin-bottom: 0.4em;
}

.ghl-post-wrap a {
  color: #1a5faa;
  text-decoration: underline;
}

.ghl-post-wrap a:hover {
  color: #0d2a4a;
}

.ghl-post-wrap strong {
  font-weight: 700;
}

.ghl-post-wrap em {
  font-style: italic;
  color: #444;
}

/* ── BYLINE ───────────────────────────────────────────────── */
.ghl-post-byline {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.4rem;
  margin-top: 0;
}

.ghl-post-byline a {
  color: #1a5faa;
  text-decoration: none;
}

/* ── FEATURED SNIPPET ─────────────────────────────────────── */
.ghl-post-featured-snippet,
.ghl-post-snip,
.ghl-post-s {
  background: #eaf2ff;
  border: 2px solid #1a5faa;
  border-radius: 6px;
  padding: 1.4rem 1.6rem;
  margin: 0 0 1.8rem;
}

.ghl-post-featured-snippet p,
.ghl-post-snip p,
.ghl-post-s p {
  font-size: 0.97rem;
  margin-bottom: 0;
  color: #1a1a1a;
}

/* ── QUICK ANSWER ─────────────────────────────────────────── */
.ghl-post-quick-answer,
.ghl-post-qa {
  background: #fff9e6;
  border: 2px solid #f5a623;
  border-radius: 6px;
  padding: 1.2rem 1.4rem;
  margin: 2rem 0;
}

.ghl-post-quick-answer strong,
.ghl-post-qa strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #c47300;
  margin-bottom: 0.4rem;
}

.ghl-post-quick-answer p,
.ghl-post-qa p {
  font-size: 0.97rem;
  margin-bottom: 0;
}

/* ── TABLE OF CONTENTS ────────────────────────────────────── */
.ghl-post-toc {
  background: #fff;
  border: 1px solid #dde3ec;
  border-radius: 6px;
  padding: 1.4rem 1.6rem;
  margin: 2rem 0;
}

.ghl-post-toc h2 {
  font-size: 1rem !important;
  font-weight: 700;
  color: #0d2a4a;
  margin: 0 0 0.8rem !important;
}

.ghl-post-toc ol {
  margin-bottom: 0;
  padding-left: 1.3rem;
}

.ghl-post-toc li {
  margin-bottom: 0.3em;
  font-size: 0.92rem;
}

.ghl-post-toc a {
  color: #1a5faa;
  text-decoration: none;
}

.ghl-post-toc a:hover {
  text-decoration: underline;
}

/* ── CTA BOXES ────────────────────────────────────────────── */
.ghl-post-cta,
.ghl-post-c {
  background: linear-gradient(135deg, #0d2a4a 0%, #1a5faa 100%);
  border-radius: 8px;
  padding: 1.6rem 1.8rem;
  margin: 2.5rem 0;
  color: #fff;
  text-align: center;
}

.ghl-post-cta h3,
.ghl-post-c h3 {
  color: #fff !important;
  font-size: 1.2rem;
  margin: 0 0 0.5rem !important;
  text-wrap: balance;
}

.ghl-post-cta p,
.ghl-post-c p {
  font-size: 0.97rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

.ghl-post-cta a,
.ghl-post-c a {
  display: inline-block;
  background: #f5a623;
  color: #0d2a4a !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.6rem;
  border-radius: 5px;
  text-decoration: none !important;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}

.ghl-post-cta a:hover,
.ghl-post-c a:hover {
  background: #e09510;
  color: #0d2a4a !important;
}

/* ── DEFINITION / SUMMARY TABLE ───────────────────────────── */
.ghl-post-def-table,
.ghl-post-defs,
.ghl-post-wh-table,
.ghl-post-ep-table,
.ghl-post-payout-tab,
.ghl-post-table,
.ghl-post-action-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8rem 0;
  font-size: 0.93rem;
}

.ghl-post-def-table th,
.ghl-post-defs th,
.ghl-post-wh-table th,
.ghl-post-ep-table th,
.ghl-post-table th,
.ghl-post-action-table th {
  background: #0d2a4a;
  color: #fff;
  text-align: left;
  padding: 0.65rem 1rem;
  font-weight: 700;
}

.ghl-post-def-table td,
.ghl-post-defs td,
.ghl-post-wh-table td,
.ghl-post-ep-table td,
.ghl-post-payout-tab td,
.ghl-post-payout-row td,
.ghl-post-table td,
.ghl-post-action-table td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #dde3ec;
  vertical-align: top;
}

.ghl-post-def-table tr:nth-child(even) td,
.ghl-post-defs tr:nth-child(even) td,
.ghl-post-wh-table tr:nth-child(even) td,
.ghl-post-ep-table tr:nth-child(even) td,
.ghl-post-table tr:nth-child(even) td,
.ghl-post-action-table tr:nth-child(even) td {
  background: #f8fafd;
}

/* ── WHO IT'S FOR GRID ────────────────────────────────────── */
.ghl-post-who-grid,
.ghl-post-who {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin: 1.8rem 0;
}

.ghl-post-who-yes,
.ghl-post-fit {
  background: #eafaf1;
  border: 1px solid #a3d9b1;
  border-radius: 6px;
  padding: 1.2rem 1.3rem;
}

.ghl-post-who-no,
.ghl-post-nofit {
  background: #fdf3f3;
  border: 1px solid #e8b4b4;
  border-radius: 6px;
  padding: 1.2rem 1.3rem;
}

.ghl-post-who-yes h3,
.ghl-post-fit h3 {
  font-size: 0.95rem !important;
  margin: 0 0 0.6rem !important;
  color: #1a7a3a !important;
}

.ghl-post-who-no h3,
.ghl-post-nofit h3 {
  font-size: 0.95rem !important;
  margin: 0 0 0.6rem !important;
  color: #a02020 !important;
}

.ghl-post-who-yes ul,
.ghl-post-fit ul,
.ghl-post-who-no ul,
.ghl-post-nofit ul {
  padding-left: 1.2rem;
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* ── RELATED POSTS ────────────────────────────────────────── */
.ghl-post-related,
.ghl-post-rel,
.ghl-post-r {
  border-top: 2px solid #dde3ec;
  padding-top: 1.5rem;
  margin-top: 2.5rem;
}

.ghl-post-related h2,
.ghl-post-rel h2,
.ghl-post-r h2 {
  font-size: 1.1rem !important;
  margin: 0 0 0.8rem !important;
  color: #0d2a4a;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ghl-post-related ul,
.ghl-post-rel ul,
.ghl-post-r ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ghl-post-related li,
.ghl-post-rel li,
.ghl-post-r li {
  padding: 0.4rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  margin-bottom: 0;
}

.ghl-post-related li:last-child,
.ghl-post-rel li:last-child,
.ghl-post-r li:last-child {
  border-bottom: none;
}

.ghl-post-related a,
.ghl-post-rel a,
.ghl-post-r a {
  color: #1a5faa;
  text-decoration: none;
}

.ghl-post-related a:hover,
.ghl-post-rel a:hover,
.ghl-post-r a:hover {
  text-decoration: underline;
}

/* ── NOTE / WARNING / NOTICE BOXES ───────────────────────── */
.ghl-post-note {
  background: #eaf5ee;
  border-left: 3px solid #2e9e54;
  border-radius: 0 4px 4px 0;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  font-size: 0.93rem;
}

.ghl-post-warning {
  background: #fff8ed;
  border-left: 3px solid #e8930a;
  border-radius: 0 4px 4px 0;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  font-size: 0.93rem;
}

.ghl-post-notice {
  background: #fff8ed;
  border-left: 3px solid #f5a623;
  border-radius: 0 4px 4px 0;
  padding: 0.8rem 1rem;
  margin: 1rem 0;
  font-size: 0.93rem;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.ghl-post-faq {
  margin: 1.5rem 0;
}

.ghl-post-faq-q {
  background: #f8fafd;
  border-left: 3px solid #1a5faa;
  border-radius: 0 4px 4px 0;
  padding: 0.75rem 1rem;
  margin: 1.2rem 0 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: #0d2a4a;
}

/* ── POSITIVE / NEGATIVE ──────────────────────────────────── */
.ghl-post-positive {
  color: #1a7a3a;
  font-weight: 600;
}

.ghl-post-negative {
  color: #a02020;
  font-weight: 600;
}

/* ── FEATURE GRID CARDS ───────────────────────────────────── */
.ghl-post-feature-grid,
.ghl-post-channel-card,
.ghl-post-channels,
.ghl-post-content-grid,
.ghl-post-mode-grid,
.ghl-post-os-grid,
.ghl-post-auth-grid,
.ghl-post-v4-grid,
.ghl-post-trigger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.ghl-post-feat-card,
.ghl-post-content-card,
.ghl-post-mode-card,
.ghl-post-os-card,
.ghl-post-auth-card,
.ghl-post-v4-card,
.ghl-post-ver-card,
.ghl-post-tri-card,
.ghl-post-trig-card,
.ghl-post-box,
.ghl-post-visual,
.ghl-post-intent,
.ghl-post-intent-card {
  background: #fff;
  border: 1px solid #dde3ec;
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
}

.ghl-post-feat-card h3,
.ghl-post-content-card h3,
.ghl-post-mode-card h3,
.ghl-post-os-card h3,
.ghl-post-auth-card h3,
.ghl-post-v4-card h3,
.ghl-post-ver-card h3,
.ghl-post-box h3 {
  font-size: 1rem !important;
  margin: 0 0 0.5rem !important;
}

/* ── TRIFECTA ─────────────────────────────────────────────── */
.ghl-post-trifecta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

/* ── VERSIONS / FLOW / HIERARCHY ─────────────────────────── */
.ghl-post-versions,
.ghl-post-flow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.ghl-post-hierarchy {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid #1a5faa;
}

/* ── BADGES ───────────────────────────────────────────────── */
.ghl-post-exclusive-badge,
.ghl-post-level-badge,
.ghl-post-premium {
  display: inline-block;
  background: #0d2a4a;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ── LEVEL / SETTINGS ─────────────────────────────────────── */
.ghl-post-level {
  margin-bottom: 1rem;
}

.ghl-post-level-desc {
  font-size: 0.92rem;
  color: #555;
  margin-top: 0.25rem;
}

.ghl-post-settings {
  background: #f8fafd;
  border: 1px solid #dde3ec;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  font-size: 0.93rem;
}

/* ── CHECK ITEMS ──────────────────────────────────────────── */
.ghl-post-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.93rem;
}

.ghl-post-check::before {
  content: "✓";
  color: #2e9e54;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── NONE / NULL ──────────────────────────────────────────── */
.ghl-post-none {
  color: #9ca3af;
  font-style: italic;
}

/* ── BTN ──────────────────────────────────────────────────── */
.ghl-post-btn {
  display: inline-block;
  background: #f5a623;
  color: #0d2a4a;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.6rem;
  border-radius: 5px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}

.ghl-post-btn:hover {
  background: #e09510;
  color: #0d2a4a;
  text-decoration: none;
}

/* ── WRAP shorthand ───────────────────────────────────────── */
.ghl-post-w {
  font-size: 17px;
  line-height: 1.75;
  color: #1a1a1a;
  max-width: 860px;
  margin: 0 auto;
}

.ghl-post-w h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #0d2a4a;
  margin: 2.4rem 0 0.8rem;
  line-height: 1.3;
}

.ghl-post-w h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0d2a4a;
  margin: 1.8rem 0 0.5rem;
}

.ghl-post-w p { margin-bottom: 1.1em; }

.ghl-post-w ul,
.ghl-post-w ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1em;
}

.ghl-post-w li { margin-bottom: 0.4em; }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .ghl-post-who-grid,
  .ghl-post-who,
  .ghl-post-trifecta {
    grid-template-columns: 1fr;
  }

  .ghl-post-feature-grid,
  .ghl-post-channels,
  .ghl-post-content-grid,
  .ghl-post-mode-grid,
  .ghl-post-os-grid,
  .ghl-post-auth-grid,
  .ghl-post-v4-grid,
  .ghl-post-trigger-grid {
    grid-template-columns: 1fr;
  }

  .ghl-post-wrap,
  .ghl-post-w {
    font-size: 16px;
  }
}
