/* WordPress integration only. The design itself lives in site.css. */

/* Logged-in admin bar: keep the sticky header below it. */
body.admin-bar header.sticky { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar header.sticky { top: 46px; } }
@media screen and (max-width: 600px) { body.admin-bar header.sticky { top: 0; } }

/* Mobile menu groups are server-rendered and toggled with the hidden attribute. */
[data-mobile-panel][hidden] { display: none; }

/* Fallback template (older posts and pages that are not part of the supplied design). */
.mdhd-content > * + * { margin-top: 1.25rem; }
.mdhd-content h2 { margin-top: 2.75rem; font-size: 1.875rem; line-height: 1.1; }
.mdhd-content h3 { margin-top: 2rem; font-size: 1.45rem; line-height: 1.25; }
.mdhd-content ul { list-style: disc; padding-left: 1.25rem; }
.mdhd-content ol { list-style: decimal; padding-left: 1.25rem; }
.mdhd-content li + li { margin-top: 0.5rem; }
.mdhd-content img { height: auto; max-width: 100%; border-radius: 1rem; }
.mdhd-content blockquote { border-left: 2px solid #dda74f; padding-left: 1.25rem; font-style: italic; }

/* Anything the old page builder still prints into the page (popups, old header or footer). */
body.mdhd [data-elementor-type="popup"],
body.mdhd [data-elementor-type="header"],
body.mdhd [data-elementor-type="footer"],
body.mdhd-route [data-elementor-type] { display: none !important; }

/* Journal articles written in the WordPress editor: same rhythm as the supplied article body. */
.mdhd-article > p { margin-top: 1.25rem; color: rgb(33 50 58 / 0.85); }
.mdhd-article > p:first-child { margin-top: 0; }
.mdhd-article h2 { margin-top: 3.5rem; font-size: 1.875rem; line-height: 1.25; color: #21323a; }
.mdhd-article h3 { margin-top: 2.5rem; font-size: 1.5rem; line-height: 1.3; color: #21323a; }
.mdhd-article h4 { margin-top: 2rem; font-size: 1.25rem; color: #21323a; }
@media (min-width: 48rem) { .mdhd-article h2 { font-size: 2.25rem; } }
.mdhd-article h2 span, .mdhd-article h3 span, .mdhd-article h4 span { font-weight: inherit !important; }
.mdhd-article ul, .mdhd-article ol { margin: 1.5rem 0; padding: 0; color: rgb(33 50 58 / 0.85); }
.mdhd-article ul > li { position: relative; padding-left: 1.5rem; }
.mdhd-article ul > li::before { content: ''; position: absolute; left: 0; top: 0.7rem; height: 0.375rem; width: 0.75rem; border-radius: 999px; background: #dda74f; }
.mdhd-article ol { list-style: decimal; padding-left: 1.5rem; }
.mdhd-article li + li { margin-top: 0.75rem; }
.mdhd-article img { height: auto; max-width: 100%; border-radius: 1rem; }
.mdhd-article img.aligncenter, .mdhd-article .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.mdhd-article figure { margin: 2rem 0; }
.mdhd-article blockquote { margin: 2rem 0; border-left: 2px solid #dda74f; padding-left: 1.25rem; font-style: italic; }
.mdhd-article table { width: 100%; margin: 2rem 0; border-collapse: collapse; font-size: 0.95rem; }
.mdhd-article th, .mdhd-article td { border-top: 1px solid rgb(33 50 58 / 0.1); padding: 0.75rem; text-align: left; }
.mdhd-article iframe { max-width: 100%; }

/* ---------------------------------------------------------------------------
 * Enquiry forms (Gravity Forms markup, styled for this design)
 * ------------------------------------------------------------------------- */
.mdhd-form { margin-top: 2.5rem; max-width: 42rem; border: 1px solid rgb(33 50 58 / 0.12); border-radius: 1.5rem; background: #f6f1e9; padding: 1.5rem; color: #21323a; text-align: left; }
@media (min-width: 48rem) { .mdhd-form { padding: 2rem; } }
.mdhd-form-band .mdhd-form { margin: 3rem auto 0; box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.6); }
.mdhd-form__title { font-family: Fraunces, Georgia, serif; font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.015em; color: #21323a; }
.mdhd-form__intro { margin-top: 0.5rem; font-size: 0.92rem; line-height: 1.6; color: rgb(33 50 58 / 0.75); }
.mdhd-form .gform_wrapper { margin: 1.5rem 0 0 !important; padding: 0 !important; border: 0 !important; font-family: inherit !important; }
.mdhd-form .gform_heading, .mdhd-form .gform_required_legend { display: none !important; }
.mdhd-form .gform_fields { display: grid !important; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.1rem 1rem; margin: 0; padding: 0; list-style: none; }
.mdhd-form .gfield { grid-column: span 12; min-width: 0; margin: 0; padding: 0; border: 0; }
@media (min-width: 40rem) {
	.mdhd-form .gfield.gfield--width-half { grid-column: span 6; }
	.mdhd-form .gfield.gfield--width-third { grid-column: span 4; }
}
.mdhd-form .gfield_label, .mdhd-form legend.gfield_label { display: block !important; float: none; width: auto; margin: 0 0 0.5rem !important; padding: 0; font-size: 0.72rem !important; font-weight: 600 !important; letter-spacing: 0.16em; text-transform: uppercase; color: #3d5866 !important; }
.mdhd-form .gfield_required { margin-left: 0.3rem; color: #b98020; font-size: inherit; }
.mdhd-form .ginput_complex { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 0; }
@media (min-width: 40rem) { .mdhd-form .ginput_complex { grid-template-columns: 1fr 1fr; } }
.mdhd-form .ginput_complex > span { display: block; min-width: 0; padding: 0; }
.mdhd-form input[type="text"], .mdhd-form input[type="email"], .mdhd-form input[type="tel"], .mdhd-form input[type="number"], .mdhd-form input[type="url"], .mdhd-form select, .mdhd-form textarea {
	display: block; width: 100% !important; max-width: 100% !important; margin: 0; border: 1px solid rgb(33 50 58 / 0.22) !important; border-radius: 0.9rem !important; background: #fffdf9 !important; padding: 0.8rem 1rem !important; font: inherit !important; font-size: 1rem !important; line-height: 1.4 !important; color: #21323a !important; box-shadow: none !important; transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
.mdhd-form input::placeholder, .mdhd-form textarea::placeholder { color: rgb(33 50 58 / 0.45); }
.mdhd-form input:focus, .mdhd-form select:focus, .mdhd-form textarea:focus { border-color: #dda74f !important; box-shadow: 0 0 0 3px rgb(221 167 79 / 0.25) !important; outline: none; }
.mdhd-form .hidden_sub_label, .mdhd-form .screen-reader-text, .mdhd-form .gform_anchor:empty { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mdhd-form .gform_validation_container, .mdhd-form .gfield_visibility_hidden, .mdhd-form .gform_hidden, .mdhd-form .gform_ajax_frame { display: none !important; position: absolute !important; left: -9000px; }
.mdhd-form .gform_footer, .mdhd-form .gform-footer, .mdhd-form .gform_page_footer { display: flex; align-items: center; gap: 0.75rem; margin: 1.5rem 0 0 !important; padding: 0 !important; text-align: left !important; justify-content: flex-start !important; }
.mdhd-form .gform_button, .mdhd-form input[type="submit"], .mdhd-form button[type="submit"] {
	display: inline-flex; align-items: center; width: auto !important; margin: 0; border: 0 !important; border-radius: 999px !important; background: #21323a !important; padding: 0.875rem 1.75rem !important; font: inherit !important; font-size: 0.95rem !important; font-weight: 600 !important; line-height: 1.4 !important; color: #f6f1e9 !important; cursor: pointer; transition: transform 0.3s, background-color 0.3s;
}
.mdhd-form .gform_button:hover, .mdhd-form input[type="submit"]:hover, .mdhd-form button[type="submit"]:hover { background: #2c4450 !important; color: #f6f1e9 !important; transform: translateY(-0.125rem); }
.mdhd-form .gform_ajax_spinner { width: 1.25rem; height: 1.25rem; }
.mdhd-form .gfield_description, .mdhd-form .gform_fileupload_rules { margin-top: 0.4rem; font-size: 0.85rem; color: rgb(33 50 58 / 0.7); }
.mdhd-form .validation_message, .mdhd-form .gfield_validation_message { margin-top: 0.4rem; padding: 0 !important; border: 0 !important; background: none !important; font-size: 0.85rem; color: #a3301f !important; }
.mdhd-form .gfield_error input, .mdhd-form .gfield_error select, .mdhd-form .gfield_error textarea { border-color: #a3301f !important; }
.mdhd-form .gform_validation_errors, .mdhd-form .validation_error { margin: 0 0 1.25rem; border: 1px solid rgb(163 48 31 / 0.4) !important; border-radius: 0.9rem; background: rgb(163 48 31 / 0.06) !important; padding: 0.85rem 1rem; box-shadow: none !important; color: #a3301f !important; }
.mdhd-form .gform_validation_errors h2, .mdhd-form .gform_submission_error { margin: 0; font-family: inherit; font-size: 0.92rem !important; font-weight: 600; line-height: 1.5; letter-spacing: 0; color: #a3301f !important; }
.mdhd-form .gform_validation_errors ol { margin: 0.4rem 0 0; padding-left: 1.1rem; list-style: decimal; font-size: 0.85rem; }
.mdhd-form .gform_confirmation_message { margin-top: 1.25rem; border-left: 2px solid #dda74f; padding-left: 1rem; font-family: Fraunces, Georgia, serif; font-size: 1.25rem; line-height: 1.4; color: #21323a; }
.mdhd-form .gfield_radio, .mdhd-form .gfield_checkbox { display: grid; gap: 0.5rem; }
.mdhd-form .gchoice { display: flex; align-items: flex-start; gap: 0.6rem; }
.mdhd-form .gchoice input { margin-top: 0.35rem; accent-color: #21323a; }

/* Journal: "Show more articles" */
[data-mdhd-more-list] > li[hidden] { display: none; }
.mdhd-more { margin-top: 3.5rem; text-align: center; }
.mdhd-more[hidden] { display: none; }
.mdhd-more__btn { display: inline-flex; align-items: center; border: 1px solid rgb(33 50 58 / 0.25); border-radius: 999px; padding: 0.875rem 1.5rem; font-size: 0.95rem; font-weight: 600; color: #21323a; cursor: pointer; transition: border-color 0.2s; }
.mdhd-more__btn:hover { border-color: #21323a; }
