/* Shared shell for public guides, comparisons, integrations and solutions.
   Light sage, same tokens as the CentralizeTV landing. */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --accent: #506d48;
  --accent-hover: #41573b;
  --bg: #faf9f6;
  --card: #ffffff;
  --border: #e7e3da;
  --text: #1c1a16;
  --muted: #5d594f;
  --dim: #7d786c;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* Nav — same bar as the landing: paper, sage wordmark, sticky. */
nav { position: sticky; top: 0; z-index: 100; background: rgba(250, 249, 246, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo a {
  display: block !important;
  width: 126px;
  height: 42px;
  background: url("/assets/centralizetv-logo-light.png?v=536561") no-repeat left center / contain;
  overflow: hidden;
}
.nav-logo svg,
.nav-logo .nav-logo-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-links { display: flex; align-items: center; flex-wrap: nowrap; }
.nav-links a { color: var(--muted); margin-left: 22px; font-size: 14px; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
/* The trial link sits inside .nav-links, whose link color would otherwise win over .btn-primary. */
a.btn.btn-primary,
a.btn.btn-primary:hover,
a.btn.btn-primary:focus,
a.btn.btn-primary:focus-visible,
a.btn.btn-primary:active,
a.btn.btn-primary:disabled,
button.btn.btn-primary:disabled {
  color: #fff;
  text-decoration: none;
}
a.btn.btn-primary:disabled,
button.btn.btn-primary:disabled {
  cursor: not-allowed;
  box-shadow: none;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 40px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; box-shadow: 0 8px 24px rgba(80, 109, 72, 0.22); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: #e8efe6; text-decoration: none; }

/* Article container */
.article { max-width: 880px; margin: 0 auto; padding: 40px 24px 60px; }
/* The breadcrumb is a <nav> too, so undo the sticky bar rule above. */
.breadcrumb { position: static; z-index: auto; background: none; backdrop-filter: none; border-bottom: 0; font-size: 13px; color: var(--dim); margin-bottom: 24px; }
.breadcrumb a { color: var(--dim); font-weight: 500; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 8px; color: var(--border); }

.article h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 16px; color: var(--text); }
.article .lead { font-size: 18px; color: var(--muted); margin-bottom: 32px; }
.article h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 48px 0 16px; line-height: 1.3; color: var(--text); }
.article h3 { font-size: 20px; font-weight: 650; margin: 28px 0 12px; color: var(--text); }
.article p { margin-bottom: 16px; color: var(--text); }
.article ul, .article ol { margin: 0 0 16px 24px; color: var(--text); }
.article li { margin-bottom: 8px; }
.article strong { color: var(--text); font-weight: 650; }
.article code { background: #f5f3ee; border: 1px solid var(--border); padding: 2px 6px; border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; color: var(--text); }
.article pre { background: #f5f3ee; border: 1px solid var(--border); padding: 16px; border-radius: 8px; overflow-x: auto; margin: 16px 0; }
.article pre code { background: transparent; border: none; padding: 0; font-size: 13px; }
.article kbd { background: #fff; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 1px 6px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; color: var(--text); white-space: nowrap; }
.article blockquote { border-left: 3px solid var(--accent); padding: 8px 16px; margin: 16px 0; color: var(--muted); background: #e8efe6; border-radius: 4px; }

/* Comparison table */
.compare-table-wrap { width: 100%; overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.compare-table th, .compare-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table th { color: var(--text); font-weight: 650; background: var(--card); }
.compare-table td:first-child { color: var(--muted); }
.compare-table .yes { color: #5a8a5f; font-weight: 650; }
.compare-table .no { color: #a94a3c; }
.compare-table .partial { color: #b07a2b; }
.compare-table tbody tr:hover { background: #e8efe6; }

/* CTA */
.cta { text-align: center; padding: 48px 24px; background: #e8efe6; border: 1px solid #d5e0d0; margin: 48px 0; border-radius: 16px; }
.cta h2 { font-size: 28px; margin: 0 0 12px; }
.cta p { color: var(--muted); margin-bottom: 20px; font-size: 17px; }
.cta p.cta-alt { font-size: 14px; margin: 20px 0 0; }

.article figure { margin: 24px 0; text-align: center; }
.article figure img { max-width: 100%; height: auto; border: 1px solid var(--border); border-radius: 8px; background: var(--card); }
.article figure.narrow img { max-width: 420px; width: 100%; }
.article figure figcaption { color: var(--dim); font-size: 14px; margin-top: 8px; text-align: left; }

.related { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin: 32px 0; }
.related h2 { margin: 0 0 12px; font-size: 20px; }
.related ul { margin: 0; list-style: none; }
.related li { margin: 8px 0; padding-left: 0; }
.related li::before { content: "> "; color: var(--accent); font-weight: 700; }

footer { max-width: 1120px; margin: 0 auto; padding: 28px 24px 40px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--border); color: var(--dim); font-size: 13px; }
footer .links a { color: var(--dim); margin-left: 16px; font-size: 13px; font-weight: 600; }
footer .links a:hover { color: var(--accent); text-decoration: none; }

@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-inner { padding: 12px 14px; gap: 8px; }
  .nav-links .btn { padding: 8px 12px; font-size: 13px; margin-left: 8px; flex-shrink: 0; min-height: 40px; }
  .btn { min-height: 44px; }
  .article { padding: 28px 16px 40px; }
  .cta { padding: 32px 16px; }
  footer { flex-direction: column; text-align: center; }
  footer .links a { margin: 4px 8px; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 8px; }
}
@media (max-width: 420px) {
  .nav-logo a { width: 108px; height: 36px; }
}
