/*
Theme Name: Kadence JMS
Theme URI: https://joshuamshelton.com
Template: kadence
Author: Joshua Michael Shelton
Version: 1.0.0
Description: Design-preserving child theme for joshuamshelton.com. Renders the existing native WordPress page content unchanged through the "JMS Canvas" full-bleed template (content-only, no theme chrome), so the approved design is preserved exactly while the site runs on free, maintained Kadence — no page builder, no premium add-ons.
Requires at least: 6.0
Tested up to: 6.9
License: GPL-2.0-or-later
Text Domain: kadence-jms
*/

/* ============================================================================
   PARITY LAYER — replicate the Bricks baseline the approved design was built on.
   All rules are scoped to the canvas pages (body.jms-canvas) or to the design's
   own #jms-* containers, so Kadence's default templates are never affected.
   Root font-size (62.5% = 10px) is set inline on <html> in template-canvas.php.
   ============================================================================ */

/* Base body typography: Kadence defaults to 1.7rem/1.6; Bricks used 15px/1.7. */
body.jms-canvas { font-size: 1.5rem; line-height: 1.7; }

/* The .mag portrait figures rely on the browser-default figure side margin that
   Bricks preserved (Kadence resets figures to 0), so they inset identically. */
#jms-info-page .mag-portrait,
#jms-info-page .mag-portrait2 { margin: 15px 40px; }

/* Keep grid image tracks from inflating to the image's intrinsic width. */
#jms-info-page .mag-hero > *,
#jms-info-page .mag-feature > * { min-width: 0; }
#jms-info-page .mag-hero img,
#jms-info-page .mag-feature img { max-width: 100%; }

/* Neutralize Kadence's default paragraph margin on unclassed (wpautop) <p>;
   the design's classed .cx-*/.mag-* elements keep their own spacing. */
#jms-contact-page p:not([class]),
#jms-info-page p:not([class]) { margin: 0; }

/* Collapse empty wpautop <p> (Bricks collapsed them; Kadence gives them a
   line-box + margin, creating phantom vertical gaps). */
#jms-contact-page p:empty,
#jms-info-page p:empty { display: none; }
