/*
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.4.16
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: redveto
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%; }
:root { --cg-bg:#FFFFFF; --cg-surface:#F2F2F2; --cg-text:#4B5563; --cg-head:#011C40; --cg-quiet:#5F6C84; --cg-line:#D9D9D9; --cg-accent:#C4491B; --cg-accent-hover:#A64521; --cg-accent-text:#C4491B; --cg-link:#034AA6; --cg-card:#FFFFFF; --cg-eyebrow:#A64521; }
.dark { --cg-bg:#0A111D; --cg-surface:#0F1828; --cg-text:#C3CCDA; --cg-head:#F2F5FA; --cg-quiet:#9AA7BD; --cg-line:rgba(255,255,255,0.12); --cg-accent-text:#F0875F; --cg-accent-hover:#A64521; --cg-link:#7FB0F5; --cg-card:#0F1828; --cg-eyebrow:#F0875F; }
body.cg-content-view { background: var(--cg-bg); color: var(--cg-text); font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif; font-size: 16px; }
.cg-wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.cg-wordmark { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-size: 26px; letter-spacing: -0.02em; color: var(--cg-head); text-decoration: none; line-height: 1; }
.cg-wordmark i { font-style: italic; color: var(--cg-accent-text); }

.cg-site-header { position: sticky; top: 0; z-index: 50; background: #011C40; border-bottom: 1px solid rgba(255,255,255,.12); }
.dark .cg-site-header { background: #020E22; }
.cg-site-header .cg-wordmark { color: #fff; }
.cg-site-header .cg-wordmark i { color: #F0875F; }
.cg-site-header .cg-site-nav a { color: #C9D3E3; }
.cg-site-header .cg-site-nav a:hover, .cg-site-header .cg-site-nav a[aria-current="page"] { color: #fff; }
.cg-site-header .cg-theme-toggle, .cg-site-header .cg-menu-btn { color: #C9D3E3; width: 44px; height: 44px; }
.cg-site-header .cg-theme-toggle:hover, .cg-site-header .cg-menu-btn:hover { color: #fff; background: rgba(255,255,255,.1); }
.cg-site-header :focus-visible { outline-color: #fff; }
.cg-site-header__inner { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cg-site-nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.cg-site-nav a { color: var(--cg-text); text-decoration: none; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; }
.cg-site-nav a:hover, .cg-site-nav a[aria-current="page"] { color: var(--cg-head); }
.cg-site-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--cg-accent); border-radius: 0; }
.cg-site-actions { display: flex; align-items: center; gap: 8px; }
.cg-btn { display: inline-flex; align-items: center; background: var(--cg-accent); color: #fff !important; font-weight: 600; font-size: 14.5px; padding: 10px 16px; border-radius: 8px; text-decoration: none; white-space: nowrap; }
.cg-btn:hover { background: var(--cg-accent-hover); }
.cg-theme-toggle, .cg-menu-btn { width: 38px; height: 38px; border-radius: 8px; border: 0; background: transparent; color: var(--cg-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cg-theme-toggle:hover, .cg-menu-btn:hover { background: color-mix(in srgb, var(--cg-head) 7%, transparent); color: var(--cg-head); }
.cg-i-moon { display: none; } .dark .cg-i-sun { display: none; } .dark .cg-i-moon { display: block; }
.cg-menu-btn { display: none; }
:focus-visible { outline: 3px solid var(--cg-link); outline-offset: 2px; }
@media (max-width: 1023px) {
  .cg-menu-btn { display: inline-flex; }
  .cg-site-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; background: var(--cg-bg); border-bottom: 1px solid var(--cg-line); padding: 8px 24px 16px; margin: 0; }
  .cg-site-nav.is-open { display: flex; }
  .cg-site-nav a { padding: 12px 4px; font-size: 16px; }
}
@media (max-width: 480px) { .cg-site-actions .cg-btn { padding: 9px 12px; font-size: 13.5px; } .cg-wordmark { font-size: 23px; } }

.cg-content { padding-top: 64px; padding-bottom: 96px; }
.cg-entry { max-width: 720px; margin: 0 auto 56px; }
.cg-entry__title { font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; color: var(--cg-head); 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: var(--cg-accent-text); }
.cg-entry__meta { color: var(--cg-quiet); 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: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif; color: var(--cg-head); letter-spacing: -0.02em; line-height: 1.2; margin-top: 2em; }
.cg-prose a { color: var(--cg-link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--cg-link) 40%, transparent); text-underline-offset: 4px; }
.cg-prose blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--cg-accent); color: var(--cg-text); }
.cg-prose code { font-family: "JetBrains Mono Variable", ui-monospace, monospace; font-size: 0.9em; background: var(--cg-surface); padding: 2px 6px; border-radius: 4px; }
.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: var(--cg-accent-text); }
.cg-prose strong { color: var(--cg-head); font-weight: 600; }
.cg-prose table { width: 100%; border-collapse: collapse; }
.cg-prose th, .cg-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--cg-line); }

.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 var(--cg-line); text-decoration: none; color: var(--cg-head); }
.cg-pagination .current { background: var(--cg-head); color: var(--cg-bg); }

/* Footer */
.cg-site-footer { padding: 56px 0 32px; color: #C9D3E3; font-size: 14.5px; background: #011C40; }
.dark .cg-site-footer { background: #020E22; }
.cg-site-footer .cg-wordmark { color: #fff; }
.cg-site-footer .cg-wordmark i { color: #F0875F; }
.cg-site-footer a { color: #C9D3E3; }
.cg-site-footer a:hover { color: #fff; }
.cg-site-footer :focus-visible { outline-color: #fff; }
.cg-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.cg-footer-grid h3 { margin: 0 0 14px; font-family: "JetBrains Mono Variable", ui-monospace, monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #C9D3E3; font-weight: 500; }
.cg-footer-grid div > a { display: block; padding: 5px 0; color: #C9D3E3; text-decoration: none; }
.cg-footer-grid a.cg-wordmark, .cg-footer-brand a.cg-wordmark { display: inline-block; padding: 0; color: #fff; }
.cg-footer-grid div > a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.cg-footer-brand p { margin: 14px 0 0; max-width: 34ch; line-height: 1.55; }
.cg-footer-note { font-size: 13px; color: #C9D3E3; }
.cg-footer-legal { margin: 40px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); font-size: 13px; line-height: 1.6; color: #C9D3E3; max-width: 80ch; }
.cg-footer-copy { margin: 12px 0 0; font-size: 13px; color: #C9D3E3; }
@media (max-width: 760px) { .cg-footer-grid { grid-template-columns: 1fr 1fr; } .cg-footer-brand { grid-column: 1 / -1; } }

/* 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-family: "JetBrains Mono Variable", ui-monospace, monospace; font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cg-eyebrow); margin: 0 0 12px; }
.cg-blog__intro { max-width: 720px; margin: 0 0 44px; }
.cg-blog__lead { font-size: 18px; line-height: 1.6; color: var(--cg-text); margin: 0; }
.cg-blog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-bottom: 40px; }
.cg-card { position: relative; background: var(--cg-card); border: 1px solid var(--cg-line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.cg-card:hover { border-color: var(--cg-head); box-shadow: 0 14px 30px -18px rgba(1,28,64,.35); }
.cg-card__image img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cg-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cg-card__cat { margin: 0; align-self: flex-start; font-family: "JetBrains Mono Variable", ui-monospace, monospace; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: #034AA6; background: #E8F0FB; padding: 4px 8px; border-radius: 4px; }
.dark .cg-card__cat { color: #9CC1F7; background: rgba(127,176,245,.14); }
.cg-card__title { margin: 0; font-weight: 700; font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; }
.cg-card__title a { color: var(--cg-head); text-decoration: none; }
.cg-card__title a::after { content: ""; position: absolute; inset: 0; }
.cg-card__excerpt { margin: 0; color: var(--cg-text); font-size: 15px; line-height: 1.55; flex: 1; }
.cg-card__meta { margin: 0; color: var(--cg-quiet); font-size: 13px; }
.cg-blog__empty { padding: 48px 24px; text-align: center; border: 1px dashed var(--cg-line); border-radius: 12px; color: var(--cg-text); margin-bottom: 40px; background: var(--cg-surface); }
.cg-btn-solid { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 8px; background: var(--cg-accent); color: #fff !important; font-weight: 600; font-size: 15px; text-decoration: none !important; white-space: nowrap; }
.cg-btn-solid:hover { background: var(--cg-accent-hover); }
.cg-cta { margin: 56px 0 0; padding: 28px; border-radius: 12px; background: #011C40; 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: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif; font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; }
.cg-cta__text { margin: 0; max-width: 560px; font-size: 15px; line-height: 1.55; color: #C3CCDA; }
.dark .cg-cta { background: #0F1828; border: 1px solid rgba(255,255,255,.12); }
.cg-back { margin-top: 28px; font-size: 15px; }
.cg-back a { color: var(--cg-link); text-decoration: underline; text-underline-offset: 4px; }
