/* WordPress-only additions to the prototype CSS (main.css stays a straight copy of the prototype). */
.footer-blurb { margin-top: 1.25rem; max-width: 34ch; }
.site-footer .menu-item a[aria-current] { text-decoration: underline; }

/* Newsletter: footer button opens a <dialog> with the Gravity Form (first name + email). */
.newsletter-wrap { margin-top: 1.25rem; }
.newsletter-dialog { width: min(30rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; border: 1px solid var(--c-line, rgba(0,0,0,.1)); border-radius: var(--r-xl); padding: 2rem 1.75rem 1.75rem; background: var(--c-surface); color: var(--c-ink); box-shadow: var(--shadow-md); }
.newsletter-dialog::backdrop { background: rgba(16, 40, 36, .55); backdrop-filter: blur(3px); }
.newsletter-dialog h2 { font-size: var(--fs-xl); margin: 0 2.5rem .5rem 0; display: flex; align-items: center; gap: .5rem; }
.newsletter-dialog h2 i { color: var(--c-primary); }
.newsletter-dialog > p { margin: 0 0 1.25rem; }
.newsletter-dialog__close { position: absolute; top: .9rem; right: .9rem; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--c-ink); font-size: 1.25rem; cursor: pointer; }
.newsletter-dialog__close:hover { background: var(--c-band-mist); }
.newsletter-dialog .gform_wrapper.gravity-theme .gform_fields { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.newsletter-dialog .gfield { grid-column: 1 / -1; }
.newsletter-dialog .gfield--type-consent .gfield_label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.newsletter-dialog .ginput_container_consent { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.5; }
.newsletter-dialog .ginput_container_consent input[type="checkbox"] { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin-top: .1rem; accent-color: var(--c-primary); }
.newsletter-dialog .gfield_label { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sm); margin-bottom: .35rem; }
.newsletter-dialog .gform_required_legend { display: none; }
.newsletter-dialog input[type="text"], .newsletter-dialog input[type="email"] { width: 100%; min-height: 48px; border-radius: var(--r-pill); border: 1px solid var(--c-ink-muted); background: #fff; color: var(--c-ink); padding: .65rem 1.1rem; font: inherit; }
.newsletter-dialog .gform_footer { margin: 1.25rem 0 0 !important; padding: 0 !important; }
.newsletter-dialog .gform_button { width: 100%; min-height: 48px; border-radius: var(--r-pill); border: 0; background: var(--c-primary); color: var(--c-on-primary); font-family: var(--f-head); font-weight: 700; font-size: var(--fs-base); padding: .65rem 1.25rem; cursor: pointer; }
.newsletter-dialog .gform_confirmation_message { font-size: var(--fs-base); }
.newsletter-dialog .validation_message, .newsletter-dialog .gform_validation_errors { font-size: var(--fs-sm); }

/* Gravity Forms in page bodies: inherit the prototype .form look */
.form-gf .gform_wrapper input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.form-gf .gform_wrapper select, .form-gf .gform_wrapper textarea { width: 100%; min-height: 44px; border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: .65rem .85rem; font: inherit; background: var(--c-surface); color: var(--c-ink); }
.form-gf .gform_wrapper .gfield_label { font-family: var(--f-head); font-weight: 600; color: var(--c-ink); }
.form-gf .gform_wrapper .gform_button { display: inline-flex; align-items: center; gap: .5rem; min-height: 48px; padding: .75rem 1.5rem; border: 0; border-radius: var(--r-pill); background: var(--c-primary); color: var(--c-on-primary); font-family: var(--f-head); font-weight: 700; font-size: 1rem; cursor: pointer; }
.form-gf .gform_wrapper .gform_button:hover { filter: brightness(1.08); }

/* WooCommerce account forms */
.woocommerce form .form-row input.input-text { min-height: 44px; border: 1px solid var(--c-border); border-radius: var(--r-sm); padding: .6rem .85rem; }
.woocommerce .button { border-radius: var(--r-pill) !important; background: var(--c-primary) !important; color: var(--c-on-primary) !important; font-family: var(--f-head); }
