/* All layout overrides are confined to the Help Desk template. */
.page-template-page-help-desk #page #content { margin-top: 0; }
.page-template-page-help-desk #content > .col-full { width: 100%; max-width: none; padding-inline: 0; }
.page-template-page-help-desk #primary { width: 100%; float: none; margin-inline: 0; }
.gdp-help-page { --gdp-section-gap: clamp(32px, 4vw, 56px); margin-bottom: 0; }
.gdp-help-page .entry-content > * { width: calc(100% - 40px); max-width: 1360px; margin: 0 auto 24px; box-sizing: border-box; }
.gdp-help-page .entry-content > .wp-block-cover:first-child { width: 100%; max-width: none; margin: 0 0 var(--gdp-section-gap); min-height: clamp(220px, 27vw, 520px); }
.gdp-help-page .entry-content > .wp-block-cover:first-child img { max-width: none; }
.gdp-help-page .wp-block-spacer, .gdp-help-page .entry-content > p:empty { display: none; }
.gdp-help-page .entry-content h1, .gdp-help-page .entry-content h2, .gdp-help-page .entry-content h3 { margin-top: 0; margin-bottom: 20px; line-height: 1.2; }
.gdp-help-page .entry-content h1 { font-size: clamp(32px, 3.2vw, 48px); }
.gdp-help-page .entry-content h2 { font-size: clamp(28px, 2.6vw, 38px); }
.gdp-help-page .entry-content h3 { font-size: clamp(23px, 2vw, 30px); }
.gdp-help-page .entry-content p { line-height: 1.75; }
.gdp-help-page .entry-content > p { max-width: 900px; }
.gdp-help-page .entry-content > .wp-block-buttons { margin-bottom: var(--gdp-section-gap); }
.gdp-help-page .entry-content > .wp-block-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-block: 32px var(--gdp-section-gap); }
.gdp-help-page .entry-content > .wp-block-columns > .wp-block-column { display: flex; flex-direction: column; width: 100%; min-width: 0; margin: 0 !important; padding: clamp(20px, 2vw, 28px); background: #f5f5f5; border-top: 4px solid #d9272e; box-sizing: border-box; }
.gdp-help-page .wp-block-column > .wp-block-buttons { margin-top: auto; }
.gdp-help-page .wp-block-button__link { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 12px 22px; line-height: 1.5; white-space: normal; box-sizing: border-box; }
.gdp-help-page #gdp-quick-question, .gdp-help-page #gdp-consultation { scroll-margin-top: 120px; }
.gdp-help-page .entry-content > .gdp-help-question { max-width: 900px; margin-block: var(--gdp-section-gap); padding: clamp(20px, 3vw, 36px); border: 1px solid #ddd; border-top: 4px solid #c8102e; background: #fafafa; }
.gdp-help-question > h2, .gdp-help-question > p { text-align: center; }
.gdp-help-question form { margin-top: 24px; }
.gdp-help-question input, .gdp-help-question textarea { box-sizing: border-box; border: 1px solid #b7b7b7; padding: 12px; border-radius: 0; }
.gdp-help-question input { min-height: 48px; }
.gdp-help-question textarea { resize: vertical; }
.gdp-help-question input:focus-visible, .gdp-help-question textarea:focus-visible, .gdp-help-question button:focus-visible { outline: 2px solid #c8102e; outline-offset: 3px; }
.gdp-help-question button[type="submit"] { min-height: 48px; padding: 12px 26px; background: #c8102e; color: #fff; border: 0; border-radius: 24px; }
.gdp-help-question button:disabled { opacity: .65; cursor: wait; }
.gdp-help-page .entry-content > .gdpai-chat-root { margin-block: 24px var(--gdp-section-gap); }
/* Grow with the conversation, then scroll. Do not reserve a blank transcript. */
.gdp-help-page .gdpai-messages { height: auto; min-height: 0; max-height: min(60vh, 560px); }
.gdp-help-page .gdpai-input { min-width: 0; width: 100%; font-size: 16px; }
.gdp-help-page .gdpai-msg .bubble { overflow-wrap: anywhere; }
.gdp-help-page #gdp-calendly-embed { width: 100%; height: 740px; }
.gdp-help-page #gdp-calendly-embed iframe { width: 100%; max-width: 100%; }
.gdp-help-page .gdp-calendly-fallback { text-align: center; margin-block: 16px 0; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) {
  html:has(.gdp-help-page) { scroll-behavior: smooth; }
}
@media (max-width: 781px) {
  .gdp-help-page .entry-content > * { width: calc(100% - 32px); }
  .gdp-help-page .entry-content > .wp-block-columns { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .gdp-help-page .entry-content > p br { display: none; }
  .gdp-help-page #gdp-calendly-embed { height: 900px; }
}
@media (max-width: 480px) {
  .gdp-help-page .gdp-product-question__fields { grid-template-columns: minmax(0, 1fr); }
  .gdp-help-page .gdpai-footer { padding: 10px; }
  .gdp-help-page #gdp-consultation { width: 100%; }
  .gdp-help-page .gdp-calendly-fallback { padding-inline: 16px; }
}

.gdp-help-page .wp-block-cover__inner-container > :empty { display: none; }
