/*
Theme Name: Reid Temple
Theme URI: https://reidtemple.org
Author: Calloway & Co.
Author URI: https://callowayco.com
Description: Reid Temple AME Church theme. Uses the church's original Webflow design system so every page renders the same as the former Sitefinity site, now fully managed in WordPress.
Version: 1.0.1
Requires at least: 6.5
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: reid-temple
*/

/* Neutralise WordPress wrappers so the original Webflow CSS lays out exactly as before. */
.wp-site-blocks, .wp-site-blocks > *, .rt-main, .rt-main > .entry-content, .wp-block-post-content, .wp-block-template-part { margin: 0 !important; padding: 0 !important; max-width: none !important; }
.wp-site-blocks > * + *, .wp-block-post-content > * + *, .mainBody > * + * { margin-block-start: 0 !important; }
.wp-block-group.mainBody { margin: 0; padding: 0; }
.is-layout-flow > *, .is-layout-constrained > * { margin-block-start: 0; margin-block-end: 0; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
body { margin: 0; }
.rt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Admin bar keeps the sticky nav below it */
.admin-bar .barnav { top: 32px; }

/* Bereavement form */
.rt-form { display: grid; gap: 1rem; max-width: 760px; margin-top: 20px; }
.rt-form label { font-weight: 700; color: #1e252b; display: block; margin-bottom: .3rem; }
.rt-form input, .rt-form textarea, .rt-form select { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 3px; font: inherit; box-sizing: border-box; }
.rt-form .rt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rt-form button { background: #721121; color: #fff; border: 0; padding: 16px 40px; font-family: "Proxima nova", sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; cursor: pointer; justify-self: start; border-radius: 3px; }
.rt-notice { padding: 1rem 1.25rem; background: #eef6ee; border-left: 4px solid #2e7d32; }
.rt-notice.err { background: #fbeeee; border-color: #b00020; }
.rt-hp { position: absolute !important; left: -9999px !important; }
@media (max-width: 767px) { .rt-form .rt-row { grid-template-columns: 1fr; } }

/* ---- Global rules carried over verbatim from the old site's <head> and footer ---- */
.nav-container a.barnavlink:nth-child(8) { color: gold; }
.nav-container a.barnavlink:nth-child(8):hover { color: white; }
.nav-container a.barnavlink[href*="/give"] {
  font-size: 1.4em;
  color: #ebdc15;
  margin-left: 15px;
  padding-left: 15px;
  border-left: 1px solid rgba(255,255,255, .25);
}
.nav-container a.barnavlink[href*="/give"]:hover { color: #fff }
.footer-flex-container a { color: #fff !important; text-decoration: none; }
