/* ==========================================================================
   Barnwell corporate — WordPress additions (loaded after site.css, the approved design).
   Page text from the block editor, the block-built pieces (facts, tiles, key facts),
   Contact Form 7 and the admin bar.
   ========================================================================== */

@media (min-width: 783px) { .admin-bar .navbar:not(.is-static) { top: 32px; } .admin-bar .key-facts { top: 128px; } }

/* ---------- Page text ---------- */
.entry > *:first-child { margin-top: 0; }
.entry > p, .entry .prose > p { font-size: 16px; max-width: 900px; }
.entry a:not(.btn):not(.wp-block-button__link) { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(var(--yellow-rgb), .9); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.entry a:not(.btn):not(.wp-block-button__link):hover { color: var(--accent-dark); }
.entry h2:not(.h2u) { font-size: 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin: 1.6em 0 .6em; }
.entry h3 { font-size: 18px; font-weight: 700; margin: 1.4em 0 .5em; }
.entry ul:not(.kf-list), .entry ol { margin: 0 0 1.2em; padding-left: 0; list-style: none; max-width: 900px; }
.entry ul:not(.kf-list) > li { position: relative; padding-left: 22px; margin-bottom: 12px; font-size: 16px; }
.entry ul:not(.kf-list) > li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; background: var(--yellow); }
.entry ol { counter-reset: brn; }
.entry ol > li { position: relative; padding-left: 30px; margin-bottom: 10px; font-size: 16px; counter-increment: brn; }
.entry ol > li::before { content: counter(brn) "."; position: absolute; left: 0; font-family: var(--head); font-weight: 700; color: var(--accent-dark); }
.entry .wp-block-image { margin: 0 0 1.6em; }
.entry .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1.4em; }
.entry .wp-block-button__link { display: inline-flex; align-items: center; min-height: 50px; padding: 0 28px; border-radius: 0; font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; background: var(--yellow); color: var(--ink); text-decoration: none; }
.entry .wp-block-button__link:hover { background: var(--ink); color: #fff; }
.entry .prose > p:first-of-type { font-size: 17px; color: #333; }
.legal > p:first-of-type { font-size: 15px !important; }
.contact-intro { margin-bottom: 22px; }

/* ---------- Pieces built from Group blocks ---------- */
.entry .facts { margin: 40px 0; }
.entry .fact p { margin: 0; }
.entry .tiles > * { margin: 0; }
.wp-block-group.tile { cursor: pointer; }
.wp-block-group.tile p { margin: 0; }
.wp-block-group.tile .tile-title a { color: var(--ink); text-decoration: none; }
.wp-block-group.tile .tile-title a::after { content: ""; position: absolute; inset: 0; }
.wp-block-group.tile::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--accent-dark); transition: transform .25s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='square'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-block-group.tile:hover::after { transform: translateX(4px); }
.entry .oil-grid > * { margin: 0; }
.kf-list { list-style: none; margin: 0; padding: 0; }
.kf-list li { padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--head); font-size: 16.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.kf-list li:last-child { border-bottom: 0; }
.kf-list strong { display: block; margin-bottom: 2px; font-family: var(--body); font-size: 12px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kf-list br { display: none; }
.entry .key-facts > h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- Contact Form 7 in the Barnwell form layout ---------- */
.contact-form .wpcf7-form-control-wrap { display: block; }
.contact-form .wpcf7-not-valid-tip { display: block; margin-top: 6px; font-size: 13px; color: #b42318; }
.contact-form .wpcf7-not-valid { border-color: #b42318 !important; }
.wpcf7 form .wpcf7-response-output { margin: 20px 0 0; padding: 12px 16px; border: 1px solid var(--line); border-left: 4px solid var(--yellow); font-size: 14px; }
.wpcf7 form.sent .wpcf7-response-output { border-left-color: #3f7a23; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output { border-left-color: #b42318; }
.contact-form .wpcf7-spinner { margin: 0 0 0 10px; }
.form-missing { padding: 18px 20px; background: var(--soft); border-left: 4px solid var(--yellow); font-size: 14.5px; }
