/*
Theme Name: Redveto
Theme URI: https://redveto.com
Author: Redveto
Author URI: https://redveto.com
Description: Redveto turns your WordPress site into a contract checker for freelance developers and agencies. Visitors upload a client MSA, SOW or NDA and get a safety score, plain-English findings, counter-clauses and an email to send their client, in under 30 seconds. Version 2 brings the redesigned interface: a live contract-linter hero, interactive risk simulator and how-it-works walkthrough, a rebuilt report and a refreshed operator portal, with fonts bundled locally.
Version: 3.3.1
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clauseguard
Tags: full-width-template, one-column, custom-logo, translation-ready, block-styles, wide-blocks
*/

/* The app styles (assets/css/app.css) cover the scanner views.
   The rules below style ordinary WordPress pages and posts so they match. */

html, body { margin: 0; padding: 0; width: 100%; min-height: 100%; }
body.cg-content-view { background: #F5F7FA; color: #33415A; font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif; font-size: 16px; }
.dark body.cg-content-view { background: #0A111D; color: #C3CCDA; }

.cg-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

.cg-site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); backdrop-filter: blur(16px); border-bottom: 1px solid #E3E8EF; }
.dark .cg-site-header { background: rgba(10,17,29,0.9); border-color: rgba(255,255,255,0.07); }
.cg-site-header__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cg-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #0F1A2E; font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.dark .cg-brand { color: #fff; }
.cg-brand img { border-radius: 6px; }
.cg-site-nav { display: flex; align-items: center; gap: 4px; }
.cg-site-nav a { color: #4B5870; text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.cg-site-nav a:hover { color: #0F1A2E; }
.dark .cg-site-nav a { color: #AEB9CA; }
.dark .cg-site-nav a:hover { color: #fff; }
.cg-site-nav a.cg-btn { background: #22D3A0; color: #0A111D; font-weight: 600; margin-left: 8px; }
.cg-site-nav a.cg-btn:hover { background: #2BE0AC; }
@media (max-width: 640px) { .cg-site-nav a:not(.cg-btn) { display: none; } }

.cg-content { padding-top: 56px; padding-bottom: 96px; }
.cg-entry { max-width: 720px; margin: 0 auto 56px; }
.cg-entry__title { font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", sans-serif; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; color: #0F1A2E; font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 12px; text-wrap: balance; }
h2.cg-entry__title { font-size: 1.75rem; }
.cg-entry__title a { color: inherit; text-decoration: none; }
.cg-entry__title a:hover { color: #0E9F77; }
.dark .cg-entry__title { color: #fff; }
.cg-entry__meta { color: #7D8AA2; font-size: 14px; margin: 0 0 24px; }

.cg-prose { line-height: 1.75; font-size: 17px; }
.cg-prose > * + * { margin-top: 1.1em; }
.cg-prose h2 { font-size: 1.75rem; font-weight: 700; }
.cg-prose h3 { font-size: 1.35rem; font-weight: 700; }
.cg-prose h4 { font-size: 1.1rem; font-weight: 700; }
.cg-prose h2, .cg-prose h3, .cg-prose h4 { font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", sans-serif; color: #0F1A2E; letter-spacing: -0.02em; line-height: 1.2; margin-top: 2em; }
.dark .cg-prose h2, .dark .cg-prose h3, .dark .cg-prose h4 { color: #fff; }
.cg-prose a { color: #0E9F77; text-decoration: underline; text-decoration-color: rgba(34,211,160,0.4); text-underline-offset: 4px; }
.dark .cg-prose a { color: #22D3A0; }
.cg-prose blockquote { margin-left: 0; padding-left: 20px; border-left: 3px solid #22D3A0; color: #4B5870; }
.cg-prose code { font-family: "JetBrains Mono Variable", ui-monospace, monospace; font-size: 0.9em; background: #EDF1F5; padding: 2px 6px; border-radius: 4px; }
.dark .cg-prose code { background: rgba(255,255,255,0.06); }
.cg-prose img { max-width: 100%; height: auto; border-radius: 12px; }
.cg-prose ul, .cg-prose ol { padding-left: 1.4em; }
.cg-prose ul { list-style: disc; }
.cg-prose ol { list-style: decimal; }
.cg-prose li + li { margin-top: 0.35em; }
.cg-prose li::marker { color: #0E9F77; }
.cg-prose strong { color: #0F1A2E; font-weight: 600; }
.dark .cg-prose strong { color: #fff; }
.cg-prose table { width: 100%; border-collapse: collapse; }
.cg-prose th, .cg-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #E3E8EF; }
.dark .cg-prose th, .dark .cg-prose td { border-color: rgba(255,255,255,0.08); }

.cg-pagination .nav-links { display: flex; gap: 8px; justify-content: center; }
.cg-pagination a, .cg-pagination span { padding: 8px 12px; border-radius: 8px; border: 1px solid #E3E8EF; text-decoration: none; color: #0F1A2E; }

.cg-site-footer { border-top: 1px solid #E3E8EF; padding: 28px 0; color: #7D8AA2; font-size: 14px; }
.dark .cg-site-footer { border-color: rgba(255,255,255,0.07); }

/* WordPress admin bar should not cover the app's sticky header */
body.admin-bar.cg-app-view header[role="banner"] { top: 32px; }
@media (max-width: 782px) { body.admin-bar.cg-app-view header[role="banner"] { top: 46px; } }

/* Blog */
.cg-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #0E9F77; margin: 0 0 10px; }
.dark .cg-eyebrow { color: #22D3A0; }
.cg-blog__intro { max-width: 720px; margin: 0 0 40px; }
.cg-blog__lead { font-size: 18px; line-height: 1.6; color: #4B5870; margin: 0; }
.dark .cg-blog__lead { color: #AEB9CA; }
.cg-blog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; }
.cg-card { background: #fff; border: 1px solid #E3E8EF; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.cg-card:hover { border-color: #0F1A2E; transform: translateY(-2px); }
.dark .cg-card { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.08); }
.dark .cg-card:hover { border-color: rgba(255,255,255,0.35); }
.cg-card__image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cg-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cg-card__cat { margin: 0; font-size: 12.5px; font-weight: 600; color: #0E9F77; }
.dark .cg-card__cat { color: #22D3A0; }
.cg-card__title { margin: 0; font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", sans-serif; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; }
.cg-card__title a { color: #0F1A2E; text-decoration: none; }
.dark .cg-card__title a { color: #fff; }
.cg-card__title a::after { content: ""; position: absolute; inset: 0; }
.cg-card { position: relative; }
.cg-card__excerpt { margin: 0; color: #4B5870; font-size: 15px; line-height: 1.55; flex: 1; }
.dark .cg-card__excerpt { color: #AEB9CA; }
.cg-card__meta { margin: 0; color: #7D8AA2; font-size: 13px; }
.cg-blog__empty { padding: 48px 24px; text-align: center; border: 1px dashed #D5DCE5; border-radius: 16px; color: #4B5870; margin-bottom: 40px; }
.cg-btn-solid { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 10px; background: #0F1A2E; color: #fff !important; font-weight: 600; font-size: 15px; text-decoration: none !important; white-space: nowrap; }
.cg-btn-solid:hover { background: #1B2A44; }
.dark .cg-btn-solid { background: #22D3A0; color: #0A111D !important; }
.cg-cta { margin: 48px 0 0; padding: 24px; border-radius: 16px; background: #0F1A2E; color: #D5DCE7; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cg-cta__title { margin: 0 0 6px; color: #fff; font-family: "Bricolage Grotesque Variable", "Bricolage Grotesque", sans-serif; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.cg-cta__text { margin: 0; max-width: 560px; font-size: 15px; line-height: 1.55; color: #AEB9CA; }
.cg-cta .cg-btn-solid { background: #22D3A0; color: #0A111D !important; }
.cg-cta .cg-btn-solid:hover { background: #2BE0AC; }
.dark .cg-cta { background: rgba(34,211,160,0.08); border: 1px solid rgba(34,211,160,0.25); }
.cg-back { margin-top: 28px; font-size: 15px; }
.cg-back a { color: #0E9F77; text-decoration: none; }
