/*
Theme Name: Cipher Website
Theme URI: https://cipher-dev-site.com/
Author: ThickLabel
Description: WordPress wrapper around the deployed Cipher website bundle.
Version: 0.1.6
Text Domain: cipher-spa
*/

/*
0.1.6 — Favicon: rebuild favicon.ico with true transparency (all 6 sizes re-rendered
        from the SVG vectors; old file had a white background baked into every
        layer). Harden the SVG's light/dark prefers-color-scheme CSS (was relying
        on browser error recovery). Add standalone WP page support: pages outside
        the SPA (Privacy Policy, Terms, …) now render Gutenberg content via
        page-standalone.php with brand styling instead of a dead SPA shell; SPA
        bundle skipped there. Bundle: footer nav items pointing outside the SPA's
        routes render as real links (full page load) instead of client-side Links.
0.1.5 — Fix symbol optical centering: drop the +17px bbox-centering shift added in
        0.1.4 and use the favicon master's original coordinates (the C's arc circle
        is designed centered on the canvas; bbox-centering pushed it visibly right
        in the hero orbit).
0.1.4 — Rebuild assets/symbols/symbol.svg and symbol-white-nobox.svg from the new
        brand master (favicon.svg geometry): larger C (artwork now fills the canvas
        instead of ~57%/~38%), both variants standardized to identical size and
        centering. Colors per file preserved (navy #1D2333 + orange / white).
0.1.3 — Add site favicons (assets/favicons/, replacing the old WP Site Icon output)
        and security response headers (HSTS, CSP, X-Frame-Options, X-Content-Type-
        Options, Referrer-Policy, Permissions-Policy) translated from the requested
        .htaccess for nginx/Kinsta.
0.1.2 — Auto-purge Kinsta full-page cache when cipher_site_content changes, so
        editor changes appear immediately without a manual "Clear Caches".
0.1.1 — Fix: script_loader_tag no longer drops the inline boot script, so
        window.CIPHER_THEME_URL / CIPHER_SITE_CONTENT / lead endpoint / nonce load
        (restores images + makes admin-edited content take effect). Bundle: fixed 9
        malformed backgroundImage url() literals.
*/

html,
body {
  min-height: 100%;
}

body.cipher-spa-body {
  margin: 0;
  background: #101827;
}

#cipher-app-shell,
#root {
  min-height: 100vh;
}

/* ---------- Standalone WP pages (Privacy Policy, Terms, …) ---------- */

.cipher-standalone {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #cbd5e1;
  font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.7;
}

.cipher-standalone a {
  color: #e4572e;
  text-decoration: none;
}

.cipher-standalone a:hover {
  text-decoration: underline;
}

.cipher-standalone-header,
.cipher-standalone-main,
.cipher-standalone-footer {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.cipher-standalone-header {
  padding-top: 32px;
  padding-bottom: 8px;
}

.cipher-standalone-header img {
  height: 40px;
  width: auto;
}

.cipher-standalone-main {
  flex: 1;
  padding-top: 24px;
  padding-bottom: 48px;
}

.cipher-standalone-title {
  color: #f8fafc;
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 24px;
}

.cipher-standalone-content h2,
.cipher-standalone-content h3,
.cipher-standalone-content h4 {
  color: #f1f5f9;
  margin: 32px 0 12px;
  line-height: 1.3;
}

.cipher-standalone-content p,
.cipher-standalone-content ul,
.cipher-standalone-content ol {
  margin: 0 0 16px;
}

.cipher-standalone-content ul,
.cipher-standalone-content ol {
  padding-left: 24px;
}

.cipher-standalone-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 16px;
}

.cipher-standalone-content th,
.cipher-standalone-content td {
  border: 1px solid #334155;
  padding: 8px 12px;
  text-align: left;
}

.cipher-standalone-footer {
  border-top: 1px solid #1f2a44;
  padding-top: 20px;
  padding-bottom: 32px;
  font-size: 0.875rem;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
