/* PT Voice theme: pieces that were interactive in the app, plus WordPress page content. */

/* Selected quote-form choice pills */
#quote fieldset label:has(input:checked) {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

/* Keep the sticky header below the WordPress admin bar */
body.admin-bar #ptv-root > header { top: 32px; }
@media (max-width: 782px) { body.admin-bar #ptv-root > header { top: 46px; } }

/* Login dropdown */
.ptv-menu-wrap { position: relative; }
.ptv-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 50; min-width: 12rem;
  padding: 0.25rem; border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px);
  background: var(--popover); color: var(--popover-foreground); box-shadow: var(--shadow-card);
}
.ptv-menu a { display: block; padding: 0.45rem 0.6rem; border-radius: calc(var(--radius) - 4px); font-size: 0.875rem; }
.ptv-menu a:hover, .ptv-menu a:focus { background: var(--secondary); color: var(--primary); outline: none; }

/* Mobile drawer */
.ptv-drawer-overlay { position: fixed; inset: 0; z-index: 99998; background: color-mix(in oklab, var(--navy) 60%, transparent); }
.ptv-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 99999; width: 18rem; max-width: 85vw; overflow-y: auto;
  padding: 1.5rem; background: var(--background); color: var(--foreground); box-shadow: var(--shadow-lift);
  font-family: var(--font-sans);
}
.ptv-drawer-head { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-size: 1.1rem; }
.ptv-drawer-close { font-size: 1.75rem; line-height: 1; cursor: pointer; background: none; border: 0; color: inherit; }
.ptv-drawer-links { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; font-weight: 500; }
.ptv-drawer-links a:hover { color: var(--primary); }
.ptv-drawer-label { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); }
.ptv-drawer-sub { margin-top: 0.75rem; gap: 0.75rem; font-weight: 400; font-size: 0.9rem; color: var(--muted-foreground); }
.ptv-drawer-phone { display: block; margin-top: 1.5rem; font-family: var(--font-display); font-weight: 600; color: var(--primary-deep); }

/* Inner pages (posts, pages, archives) */
.ptv-page { max-width: 48rem; margin: 0 auto; padding: 4rem 1.5rem 6rem; }
.ptv-page-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.1; color: var(--primary-deep); }
.ptv-meta { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.ptv-entry + .ptv-entry { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid var(--border); }
.ptv-entry h2.ptv-page-title { font-size: 1.75rem; }
.ptv-entry h2.ptv-page-title a:hover { color: var(--primary); }
.ptv-prose { margin-top: 2rem; font-size: 1.0625rem; line-height: 1.75; color: var(--foreground); }
.ptv-prose > * + * { margin-top: 1.1em; }
.ptv-prose h2, .ptv-prose h3, .ptv-prose h4 { margin-top: 2em; font-family: var(--font-display); font-weight: 700; line-height: 1.25; color: var(--primary-deep); }
.ptv-prose h2 { font-size: 1.6rem; } .ptv-prose h3 { font-size: 1.3rem; } .ptv-prose h4 { font-size: 1.1rem; }
.ptv-prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.ptv-prose ul { list-style: disc; padding-left: 1.4em; } .ptv-prose ol { list-style: decimal; padding-left: 1.4em; }
.ptv-prose li + li { margin-top: 0.35em; }
.ptv-prose blockquote { border-left: 3px solid var(--primary); padding-left: 1em; color: var(--muted-foreground); font-style: italic; }
.ptv-prose img, .ptv-prose figure { border-radius: var(--radius); height: auto; }
.ptv-prose table { width: 100%; border-collapse: collapse; } .ptv-prose th, .ptv-prose td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; }
.ptv-prose .aligncenter { margin-left: auto; margin-right: auto; } .ptv-prose .alignright { float: right; margin-left: 1.5em; } .ptv-prose .alignleft { float: left; margin-right: 1.5em; }
.ptv-pagination { margin-top: 3rem; display: flex; gap: 1rem; justify-content: space-between; color: var(--primary); font-weight: 500; }
.ptv-search { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.ptv-search input[type="search"] { flex: 1; height: 2.75rem; padding: 0 0.9rem; border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px); background: var(--card); }
.ptv-search button { height: 2.75rem; padding: 0 1.25rem; border-radius: calc(var(--radius) - 2px); background: var(--primary); color: var(--primary-foreground); font-weight: 600; cursor: pointer; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Keep the footer at the bottom on short pages */
#ptv-root { display: flex; flex-direction: column; }
#ptv-root > main { flex: 1 0 auto; width: 100%; }

/* Quote form: phone bill upload */
.ptv-optional { font-weight: 400; font-size: 0.875rem; color: var(--muted-foreground); }
.ptv-drop {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  padding: 1.75rem 1rem; text-align: center; cursor: pointer;
  border: 2px dashed var(--input); border-radius: var(--radius); background: var(--muted);
  transition: border-color .15s, background-color .15s;
}
.ptv-drop:hover, .ptv-drop-active { border-color: var(--primary); background: var(--secondary); }
.ptv-drop:focus-within { outline: 2px solid var(--ring); outline-offset: 2px; }
.ptv-drop input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ptv-drop-icon { color: var(--primary); }
.ptv-drop-title { font-weight: 500; }
.ptv-drop-link { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.ptv-drop-hint { font-size: 0.8rem; color: var(--muted-foreground); }
.ptv-drop-file { margin-top: 0.4rem; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-size: 0.8rem; font-weight: 500; }
.ptv-drop-has-file { border-style: solid; border-color: var(--primary); }
.ptv-form-error { padding: 0.75rem 1rem; border-radius: calc(var(--radius) - 2px); background: color-mix(in oklab, var(--destructive) 10%, transparent); color: var(--destructive); font-size: 0.9rem; font-weight: 500; }
.ptv-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Elementor: let landing sections run edge to edge */
.ptv-elementor .ptv-el-section > .e-con-inner,
.ptv-elementor .ptv-el-section .elementor-widget-html { width: 100%; max-width: none; padding: 0; }
.ptv-elementor .elementor-widget-html > .elementor-widget-container { padding: 0; margin: 0; }

/* ---------- Block editor landing page ---------- */
.ptv-btns { display: contents; }
.ptv-btns .wp-block-button { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ptv-btns .wp-block-button__link { all: unset; display: contents; }
figure.wp-block-image.ptv-img, .ptv-g figure.wp-block-image { margin: 0; }
.ptv-g figure.wp-block-image img { display: block; width: 100%; height: auto; }
.ptv-g .h-44 > figure.wp-block-image { height: 100%; display: flex; justify-content: center; }
.ptv-g .h-44 > figure.wp-block-image img { width: auto; max-height: 100%; object-fit: contain; }
ul.ptv-check { list-style: none; padding: 0; }
ul.ptv-check li { display: flex; gap: .5rem; }
ul.ptv-check li::before { content: ""; flex: none; width: 1rem; height: 1rem; margin-top: .2rem; background: var(--signal, #16a34a);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%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='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat; }
