/* WordPress integration; the established design lives in site.css. */
[hidden], .trendhill-dialog:not([open]) { display: none !important; }
.trendhill-dialog { border: 0; margin: 0; max-width: 100vw; max-height: 100dvh; width: 100%; height: 100dvh; background: transparent; color: var(--color-text-primary); }
.trendhill-dialog::backdrop { background: rgb(0 0 0 / .7); }
.trendhill-dialog[open] { display: flex; align-items: center; justify-content: center; }
.trendhill-dialog .lead-quiz__panel, .trendhill-dialog .package-details__panel { position: relative; max-height: calc(100dvh - 2rem); }
.trendhill-dialog .lead-quiz__main { overflow: auto; grid-template-rows: auto minmax(0, 1fr) auto; }
.trendhill-dialog .lead-quiz__controls { padding: 0 2.2rem 1.5rem; }
.trendhill-dialog .portfolio-modal__panel { width: min(1500px, calc(100vw - 2rem)); height: calc(100dvh - 2rem); }
[data-portfolio-frame] { min-height: 0; flex: 1; height: calc(100% - 5rem); }
[data-portfolio-frame] iframe { border: 0; width: 100%; height: 100%; background: white; }
.trendhill-skip-link { position: fixed; top: .5rem; left: 1rem; z-index: 10000; padding: .75rem 1rem; color: var(--color-text-primary); background: var(--color-accent-yellow); transform: translateY(-180%); }
.trendhill-skip-link:focus { transform: none; }
.admin-bar .site-header { top: 32px; }
.trendhill-editor-content { padding-block: 4rem 6rem; }
.trendhill-editor-content > * + * { margin-top: 1.5rem; }
.trendhill-editor-content h2 { font-family: var(--font-display-condensed); font-size: 2.8rem; line-height: 1.05; }
.trendhill-editor-content p, .trendhill-editor-content li { max-width: 75ch; line-height: 1.6; }
.trendhill-editor-content a, .trendhill-contact-fallback a { text-decoration: underline; text-underline-offset: .2em; }
.trendhill-editor-content ul, .trendhill-editor-content ol { padding-left: 1.5rem; list-style: revert; }
.trendhill-form-slot { margin-block: 1.5rem; }
.trendhill-form-slot input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]), .trendhill-form-slot textarea, .trendhill-form-slot select { width: 100%; border: 1px solid var(--color-border-dark); background: var(--color-surface-primary); padding: .85rem 1rem; color: var(--color-text-primary); }
.trendhill-form-slot input[type="submit"], .trendhill-form-slot button[type="submit"] { border: 1px solid var(--color-border-dark); padding: .85rem 1.5rem; background: var(--color-accent-yellow); color: var(--color-text-primary); font-weight: 700; cursor: pointer; }
.trendhill-form-slot label { display: block; margin-block: .8rem; }
.trendhill-admin-note { margin-top: 1rem; padding: 1rem; border: 1px solid var(--color-border-primary); }
.lead-quiz__title:focus { outline: none; }
.portfolio-stage__preview { scroll-margin-top: 7rem; }
html { caret-color: var(--color-text-primary); }
::selection { color: var(--color-text-primary); background: var(--color-accent-yellow); }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 767px) {
    .trendhill-dialog { padding: .5rem; }
    .trendhill-dialog .lead-quiz__panel, .trendhill-dialog .package-details__panel { max-height: calc(100dvh - 1rem); }
    .trendhill-dialog .lead-quiz__panel { display: flex; flex-direction: column; height: calc(100dvh - 1rem); min-height: 0; overflow: hidden; }
    .trendhill-dialog .lead-quiz__side { flex: 0 0 auto; }
    .trendhill-dialog .lead-quiz__main { height: auto; flex: 1; min-height: 0; overflow-y: auto; }
    .trendhill-dialog .lead-quiz__controls { padding: 0 1.25rem 1.25rem; }
    .trendhill-dialog .portfolio-modal__panel { width: calc(100vw - 1rem); height: calc(100dvh - 1rem); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
