/*
Theme Name: Quimzy
Theme URI: https://quimzy.com/
Author: Quimzy
Author URI: https://quimzy.com/
Description: A responsive Quimzy marketplace theme with clear account journeys, public service discovery and accessible dashboards.
Version: 1.1.4
Requires at least: 6.4
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: quimzy
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

:root {
  --qz-navy: #0a1849;
  --qz-navy-deep: #061033;
  --qz-cyan: #189ad3;
  --qz-cyan-dark: #0673a5;
  --qz-sky: #e9f7fd;
  --qz-mist: #f5f8fc;
  --qz-white: #ffffff;
  --qz-ink: #16213f;
  --qz-muted: #5d6983;
  --qz-line: #dce5ef;
  --qz-success: #087f5b;
  --qz-warning: #9a6700;
  --qz-danger: #b42318;
  --qz-radius-sm: 0.75rem;
  --qz-radius: 1.25rem;
  --qz-radius-lg: 2rem;
  --qz-shadow-sm: 0 0.35rem 1.25rem rgba(10, 24, 73, 0.08);
  --qz-shadow: 0 1.25rem 3.5rem rgba(10, 24, 73, 0.12);
  --qz-content: 74rem;
  --qz-transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--qz-white);
  color: var(--qz-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  max-width: 100%;
}

a {
  color: var(--qz-cyan-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--qz-navy);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
[type="button"],
[type="submit"] {
  cursor: pointer;
}

:focus-visible {
  outline: 0.2rem solid #08618d;
  outline-offset: 0.2rem;
}

.site-footer :focus-visible {
  outline-color: #65d6ff;
}

::selection {
  background: var(--qz-cyan);
  color: var(--qz-navy);
}

.screen-reader-text,
.qz-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 0.8rem 1rem;
  clip: auto;
  background: var(--qz-white);
  color: var(--qz-navy);
  font-weight: 800;
}

.qz-container,
.site-content > .wp-block-group > .wp-block-group__inner-container {
  width: min(calc(100% - 2rem), var(--qz-content));
  margin-inline: auto;
}

.qz-section {
  padding-block: clamp(4rem, 8vw, 7rem);
}

.qz-section--soft {
  background: var(--qz-mist);
}

.qz-section--sky {
  background: var(--qz-sky);
}

.qz-section--navy {
  background: var(--qz-navy);
  color: var(--qz-white);
}

.qz-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
  color: var(--qz-cyan-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.qz-eyebrow::before {
  width: 1.7rem;
  height: 0.2rem;
  border-radius: 999px;
  background: currentColor;
  content: "";
}

.qz-section--navy .qz-eyebrow {
  color: #68cbf4;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.7em;
  color: var(--qz-navy);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.55rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.45rem);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
}

.qz-section--navy h1,
.qz-section--navy h2,
.qz-section--navy h3 {
  color: var(--qz-white);
}

p {
  margin: 0 0 1.25rem;
}

.qz-lede {
  max-width: 43rem;
  color: var(--qz-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.qz-section--navy .qz-lede {
  color: #c8d1e8;
}

.qz-section-heading {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.qz-section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.qz-section-heading--center .qz-lede {
  margin-inline: auto;
}

.qz-btn,
.wp-element-button,
.wp-block-button__link,
input[type="submit"] {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.35rem;
  border: 0.12rem solid var(--qz-cyan);
  border-radius: 999px;
  background: var(--qz-cyan);
  color: var(--qz-navy);
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform var(--qz-transition), box-shadow var(--qz-transition), background var(--qz-transition), border-color var(--qz-transition);
}

.qz-btn:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover {
  border-color: var(--qz-cyan-dark);
  background: var(--qz-cyan-dark);
  color: var(--qz-white);
  transform: translateY(-1px);
  box-shadow: 0 0.7rem 1.5rem rgba(24, 154, 211, 0.23);
}

.qz-btn--navy {
  border-color: var(--qz-navy);
  background: var(--qz-navy);
  color: var(--qz-white);
}

.qz-btn--navy:hover {
  border-color: var(--qz-navy-deep);
  background: var(--qz-navy-deep);
}

.qz-btn--ghost {
  border-color: var(--qz-line);
  background: transparent;
  color: var(--qz-navy);
}

.qz-btn--ghost:hover {
  border-color: var(--qz-cyan);
  background: var(--qz-sky);
  color: var(--qz-navy);
  box-shadow: none;
}

.qz-btn--white {
  border-color: var(--qz-white);
  background: var(--qz-white);
  color: var(--qz-navy);
}

.qz-btn--white:hover {
  border-color: var(--qz-sky);
  background: var(--qz-sky);
  color: var(--qz-navy);
}

.qz-hero .qz-btn--navy {
  border-color: var(--qz-white);
  background: var(--qz-white);
  color: var(--qz-navy);
}

.qz-hero .qz-btn--navy:hover {
  border-color: var(--qz-sky);
  background: var(--qz-sky);
  color: var(--qz-navy);
}

.qz-hero .qz-btn--ghost {
  color: var(--qz-white);
}

.qz-hero .qz-btn--ghost:hover {
  color: var(--qz-navy);
}

.qz-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--qz-navy);
  font-weight: 850;
  text-decoration: none;
}

.qz-link-arrow::after {
  content: "→";
  transition: transform var(--qz-transition);
}

.qz-link-arrow:hover::after {
  transform: translateX(0.2rem);
}

/* Header */
.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgba(10, 24, 73, 0.08);
  background: rgba(255, 255, 255, 0.96);
}

@supports (backdrop-filter: blur(1rem)) {
  .site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(1rem);
  }
}

.admin-bar .site-header {
  top: 32px;
}

.site-header__inner {
  display: flex;
  min-height: 5rem;
  align-items: center;
  gap: 1.5rem;
}

.site-branding {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}

.site-branding .custom-logo-link,
.site-branding__link {
  display: inline-flex;
  align-items: center;
  color: var(--qz-navy);
  text-decoration: none;
}

.site-branding .custom-logo {
  width: auto;
  max-width: 10.5rem;
  height: 2.65rem;
  object-fit: contain;
}

.site-branding__fallback {
  width: auto;
  height: 2.65rem;
}

.site-navigation {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

.site-navigation .menu,
.site-navigation ul {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-navigation a {
  color: var(--qz-navy);
  font-size: 0.95rem;
  font-weight: 750;
  text-decoration: none;
}

.site-navigation a:hover,
.site-navigation .current-menu-item > a {
  color: var(--qz-cyan-dark);
}

.site-navigation__account {
  display: none;
}

.site-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.7rem;
}

.site-header__actions .qz-btn {
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
}

.menu-toggle {
  display: none;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0.65rem;
  border: 0;
  border-radius: 999px;
  background: var(--qz-mist);
  color: var(--qz-navy);
}

.menu-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 0.26rem 0;
  border-radius: 99px;
  background: currentColor;
  transition: transform var(--qz-transition), opacity var(--qz-transition);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(1) {
  transform: translateY(0.39rem) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(3) {
  transform: translateY(-0.39rem) rotate(-45deg);
}

/* Hero */
.qz-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background:
    radial-gradient(circle at 86% 8%, rgba(24, 154, 211, 0.23), transparent 26rem),
    radial-gradient(circle at 15% 92%, rgba(24, 154, 211, 0.13), transparent 24rem),
    var(--qz-navy);
  color: var(--qz-white);
}

.qz-hero::before,
.qz-hero::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.qz-hero::before {
  top: -15rem;
  right: -11rem;
  width: 35rem;
  height: 35rem;
}

.qz-hero::after {
  right: 9rem;
  bottom: -14rem;
  width: 24rem;
  height: 24rem;
}

.qz-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.75fr);
}

.qz-hero h1 {
  max-width: 12ch;
  margin-bottom: 1.2rem;
  color: var(--qz-white);
}

.qz-hero h1 span {
  color: #68cbf4;
}

.qz-hero__copy > p {
  max-width: 38rem;
  color: #d4dcf0;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.qz-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.35rem;
  padding: 0;
  margin: 1.7rem 0 0;
  color: #e2e9f8;
  font-size: 0.92rem;
  font-weight: 700;
  list-style: none;
}

.qz-hero__proof li {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.qz-hero__proof li::before {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(104, 203, 244, 0.18);
  color: #68cbf4;
  content: "✓";
  font-size: 0.78rem;
  place-items: center;
}

.qz-search-card {
  position: relative;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: var(--qz-radius-lg);
  background: var(--qz-white);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.22);
  color: var(--qz-ink);
}

.qz-search-card::before {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--qz-cyan);
  box-shadow: -1rem 0 0 #aee5f8, -2rem 0 0 #dbf3fc;
  content: "";
}

.qz-search-card h2 {
  max-width: 15ch;
  margin-bottom: 0.4rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.qz-search-card > p {
  color: var(--qz-muted);
  font-size: 0.95rem;
}

.qz-search-form {
  display: grid;
  gap: 1rem;
}

.qz-field label,
.qz-label {
  display: block;
  margin-bottom: 0.38rem;
  color: var(--qz-navy);
  font-size: 0.88rem;
  font-weight: 850;
}

.qz-input,
.qz-select,
.qz-textarea,
.qz-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="hidden"]),
.qz-form select,
.qz-form textarea,
.search-form .search-field,
.comment-form input:not([type="submit"]),
.comment-form textarea {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.78rem 0.95rem;
  border: 1px solid #7b8da3;
  border-radius: 0.8rem;
  background: var(--qz-white);
  color: var(--qz-ink);
  transition: border-color var(--qz-transition), box-shadow var(--qz-transition);
}

.qz-textarea,
.qz-form textarea,
.comment-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.qz-input:focus,
.qz-select:focus,
.qz-textarea:focus,
.qz-form input:focus,
.qz-form select:focus,
.qz-form textarea:focus,
.search-form .search-field:focus,
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--qz-cyan);
  box-shadow: 0 0 0 0.22rem rgba(24, 154, 211, 0.15);
}

.qz-search-form .qz-btn {
  width: 100%;
}

.qz-form-help {
  margin: -0.35rem 0 0;
  color: var(--qz-muted);
  font-size: 0.8rem;
}

/* Cards and grids */
.qz-grid {
  display: grid;
  gap: 1.4rem;
}

.qz-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qz-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.qz-card {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--qz-line);
  border-radius: var(--qz-radius);
  background: var(--qz-white);
  box-shadow: var(--qz-shadow-sm);
}

.qz-card h3:last-child,
.qz-card p:last-child {
  margin-bottom: 0;
}

.qz-card--interactive {
  transition: transform var(--qz-transition), border-color var(--qz-transition), box-shadow var(--qz-transition);
}

.qz-card--interactive:hover {
  border-color: rgba(24, 154, 211, 0.5);
  transform: translateY(-0.25rem);
  box-shadow: var(--qz-shadow);
}

.qz-icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  border-radius: 1rem;
  background: var(--qz-sky);
  color: var(--qz-cyan-dark);
  font-size: 1.35rem;
  font-weight: 900;
  place-items: center;
}

.qz-steps {
  counter-reset: qz-step;
}

.qz-steps > .qz-step {
  position: relative;
  counter-increment: qz-step;
}

.qz-steps > .qz-step::after {
  position: absolute;
  top: 1.1rem;
  right: -0.8rem;
  color: #cad6e6;
  content: "→";
  font-size: 1.6rem;
}

.qz-steps > .qz-step:last-child::after {
  content: none;
}

.qz-step__number {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--qz-navy);
  color: var(--qz-white);
  font-size: 0.85rem;
  font-weight: 900;
}

.qz-step__image {
  display: grid;
  min-height: 9.5rem;
  align-items: end;
  justify-items: center;
  margin: -0.25rem -0.25rem 1rem;
}

.qz-step__image img {
  width: 100%;
  max-width: 12rem;
  max-height: 9.5rem;
  object-fit: contain;
}

.qz-price-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(24, 154, 211, 0.34);
}

.qz-price-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 7rem;
  height: 7rem;
  border-radius: 0 0 0 100%;
  background: var(--qz-sky);
  content: "";
}

.qz-price-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  margin-block: 1.2rem;
  color: var(--qz-navy);
}

.qz-price-card__price strong {
  font-size: clamp(2.6rem, 5vw, 4rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.qz-list-checks {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 1.5rem 0;
  list-style: none;
}

.qz-list-checks li {
  position: relative;
  padding-left: 1.7rem;
}

.qz-list-checks li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--qz-success);
  content: "✓";
  font-weight: 900;
}

.qz-split {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qz-trust-panel {
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--qz-radius-lg);
  background: var(--qz-navy);
  color: var(--qz-white);
  box-shadow: var(--qz-shadow);
}

.qz-trust-panel h2,
.qz-trust-panel h3 {
  color: var(--qz-white);
}

.qz-trust-panel p {
  color: #cbd5ec;
}

.qz-stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qz-stat {
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
}

.qz-stat strong {
  display: block;
  margin-bottom: 0.15rem;
  color: #68cbf4;
  font-size: 1.65rem;
  line-height: 1.1;
}

.qz-stat span {
  color: #e7ecf8;
  font-size: 0.85rem;
}

.qz-cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.5rem);
  border-radius: var(--qz-radius-lg);
  background: var(--qz-cyan);
  color: var(--qz-navy);
}

.qz-cta::after {
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 20rem;
  height: 20rem;
  border: 1.5rem solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.qz-cta__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.qz-cta h2 {
  max-width: 16ch;
  margin-bottom: 0.35rem;
  color: var(--qz-navy);
}

.qz-cta p {
  max-width: 40rem;
  margin: 0;
  color: var(--qz-navy);
}

/* Existing plugin component compatibility */
.qz-shell,
.qz-dashboard,
.qz-auth {
  width: min(100%, var(--qz-content));
  margin-inline: auto;
}

.qz-dashboard {
  display: grid;
  align-items: start;
  gap: 1.5rem;
  grid-template-columns: minmax(13rem, 0.25fr) minmax(0, 1fr);
}

/* Core 0.1.2 emits flat dashboard children, not a sidebar/main pair. */
.qz-dashboard.qz-provider-dashboard,
.qz-dashboard.qz-customer-dashboard {
  max-width: var(--qz-content);
  grid-template-columns: minmax(0, 1fr);
}

.qz-dashboard__sidebar,
.qz-dashboard__main,
.qz-provider-panel,
.qz-customer-panel,
.qz-auth,
.qz-lead-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--qz-line);
  border-radius: var(--qz-radius);
  background: var(--qz-white);
  box-shadow: var(--qz-shadow-sm);
}

.qz-tabs {
  display: flex;
  overflow-x: auto;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 0.9rem;
  background: var(--qz-mist);
}

.qz-tabs a,
.qz-tabs button {
  min-height: 2.6rem;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--qz-muted);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.qz-tabs .is-active,
.qz-tabs [aria-selected="true"] {
  background: var(--qz-white);
  color: var(--qz-navy);
  box-shadow: 0 0.2rem 0.7rem rgba(10, 24, 73, 0.08);
}

.qz-lead-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.qz-lead-card {
  position: relative;
}

.qz-lead-card__meta,
.qz-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  color: var(--qz-muted);
  font-size: 0.88rem;
}

.qz-price {
  color: var(--qz-navy);
  font-size: 1.4rem;
  font-weight: 900;
}

.qz-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: var(--qz-sky);
  color: var(--qz-cyan-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.qz-badge--success {
  background: #e8f7f1;
  color: var(--qz-success);
}

.qz-badge--warning {
  background: #fff7df;
  color: var(--qz-warning);
}

.qz-badge--danger {
  background: #fff0ed;
  color: var(--qz-danger);
}

.qz-notice,
.qz-status {
  padding: 0.9rem 1rem;
  border: 1px solid #b8e1f3;
  border-left: 0.3rem solid var(--qz-cyan);
  border-radius: 0.75rem;
  background: var(--qz-sky);
  color: var(--qz-navy);
}

.qz-notice--success {
  border-color: #a8dec9;
  border-left-color: var(--qz-success);
  background: #ecf9f4;
}

.qz-notice--warning {
  border-color: #f0d788;
  border-left-color: var(--qz-warning);
  background: #fff9e9;
}

.qz-notice--error {
  border-color: #f2b8b0;
  border-left-color: var(--qz-danger);
  background: #fff3f1;
}

.qz-progress {
  overflow: hidden;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--qz-line);
}

.qz-progress > span {
  display: block;
  width: var(--qz-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--qz-cyan);
}

.qz-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--qz-line);
  border-radius: 1rem;
}

.qz-table,
.qz-dashboard table {
  width: 100%;
  border-collapse: collapse;
}

.qz-table th,
.qz-table td,
.qz-dashboard th,
.qz-dashboard td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--qz-line);
  text-align: left;
}

.qz-table th,
.qz-dashboard th {
  background: var(--qz-mist);
  color: var(--qz-navy);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qz-empty {
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px dashed #bdc9da;
  border-radius: var(--qz-radius);
  background: var(--qz-mist);
  color: var(--qz-muted);
  text-align: center;
}

.qz-form {
  display: grid;
  gap: 1rem;
}

.qz-form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qz-form input[type="checkbox"],
.qz-form input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  accent-color: var(--qz-cyan);
}

.qz-modal {
  width: min(calc(100% - 2rem), 38rem);
  padding: 0;
  border: 0;
  border-radius: var(--qz-radius);
  box-shadow: 0 2rem 5rem rgba(3, 9, 31, 0.3);
}

.qz-modal::backdrop {
  background: rgba(4, 10, 32, 0.7);
  backdrop-filter: blur(0.3rem);
}

.qz-modal__inner {
  padding: clamp(1.4rem, 4vw, 2.5rem);
}

/* Content templates */
.site-main {
  min-height: 40vh;
}

.qz-page-hero {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  background: var(--qz-mist);
}

.qz-page-hero__inner {
  max-width: 52rem;
}

.qz-page-hero h1 {
  margin-bottom: 0.25rem;
  font-size: clamp(2.3rem, 5vw, 4.2rem);
}

.qz-content-layout {
  display: grid;
  align-items: start;
  gap: 3rem;
  grid-template-columns: minmax(0, 1fr) 19rem;
}

.qz-entry,
.qz-post-card {
  overflow-wrap: anywhere;
}

.qz-entry-content > * {
  max-width: 48rem;
}

.qz-entry-content > .alignwide {
  max-width: 64rem;
}

.qz-entry-content > .alignfull {
  max-width: none;
}

/* Fragment headings must clear the sticky header, including at browser zoom. */
.qz-theme .qz-entry-content h1[id],
.qz-theme .qz-entry-content h2[id],
.qz-theme .qz-entry-content h3[id],
.qz-theme .qz-entry-content h4[id],
.qz-theme .qz-entry-content h5[id],
.qz-theme .qz-entry-content h6[id] {
  scroll-margin-top: 8rem;
}

.qz-entry-content blockquote {
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  border-left: 0.3rem solid var(--qz-cyan);
  color: var(--qz-navy);
  font-size: 1.2rem;
  font-weight: 650;
}

.qz-entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.qz-entry-content th,
.qz-entry-content td {
  padding: 0.75rem;
  border: 1px solid var(--qz-line);
}

/* Prose inventories retain real columns instead of inheriting character wrapping. */
.qz-theme .qz-entry-content .wp-block-table {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  scroll-margin-top: 8rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.qz-theme .qz-entry-content .wp-block-table table {
  min-width: 32rem;
  table-layout: auto;
  overflow-wrap: normal;
  word-break: normal;
}

.qz-theme .qz-entry-content .wp-block-table:has(tr > :nth-child(4)) table {
  min-width: 56rem;
}

.qz-theme .qz-entry-content .wp-block-table th,
.qz-theme .qz-entry-content .wp-block-table td {
  min-width: 8rem;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}

.qz-theme .qz-entry-content .wp-block-table code {
  overflow-wrap: anywhere;
}

.qz-theme .qz-entry-content .qz-table-hint {
  margin-block: 1rem 0.5rem;
  color: var(--qz-muted);
  font-size: 0.875rem;
}

.qz-theme .qz-entry-content .wp-block-table:focus-visible {
  outline: 0.2rem solid #08618d;
  outline-offset: 0.2rem;
}

.qz-post-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qz-post-card {
  overflow: hidden;
  border: 1px solid var(--qz-line);
  border-radius: var(--qz-radius);
  background: var(--qz-white);
  box-shadow: var(--qz-shadow-sm);
}

.qz-post-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--qz-sky);
}

.qz-post-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.qz-post-card:hover .qz-post-card__image img {
  transform: scale(1.025);
}

.qz-post-card__body {
  padding: 1.35rem;
}

.qz-post-card__body h2 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.qz-post-card__body h2 a {
  color: inherit;
  text-decoration: none;
}

.qz-post-card__body p {
  color: var(--qz-muted);
}

.qz-entry-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  color: var(--qz-muted);
  font-size: 0.85rem;
}

.qz-pagination,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 2.5rem;
}

.page-numbers {
  display: inline-grid;
  min-width: 2.7rem;
  min-height: 2.7rem;
  padding: 0.5rem;
  border: 1px solid var(--qz-line);
  border-radius: 0.7rem;
  background: var(--qz-white);
  color: var(--qz-navy);
  font-weight: 800;
  text-decoration: none;
  place-items: center;
}

.page-numbers.current,
.page-numbers:hover {
  border-color: var(--qz-navy);
  background: var(--qz-navy);
  color: var(--qz-white);
}

.qz-sidebar .widget {
  padding: 1.25rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--qz-line);
  border-radius: var(--qz-radius-sm);
}

.qz-sidebar .widget-title {
  font-size: 1.05rem;
}

.qz-sidebar ul {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.search-form {
  display: flex;
  gap: 0.5rem;
}

.search-form .search-submit {
  min-height: 3.2rem;
  padding-inline: 1rem;
}

.qz-404 {
  display: grid;
  min-height: 35rem;
  align-items: center;
  text-align: center;
}

.qz-404__code {
  margin: 0;
  color: rgba(24, 154, 211, 0.18);
  font-size: clamp(7rem, 25vw, 16rem);
  font-weight: 950;
  letter-spacing: -0.1em;
  line-height: 0.7;
}

.qz-404__lede {
  margin-inline: auto;
}

.qz-404__actions {
  justify-content: center;
}

/* Comments */
.comments-area {
  max-width: 48rem;
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid var(--qz-line);
}

.comment-list {
  padding: 0;
  list-style: none;
}

.comment-list .children {
  padding-left: 1.5rem;
  list-style: none;
}

.comment-body {
  padding: 1.2rem;
  margin-bottom: 1rem;
  border: 1px solid var(--qz-line);
  border-radius: var(--qz-radius-sm);
}

/* Footer */
.site-footer {
  background: var(--qz-navy-deep);
  color: #c4cee5;
}

.site-footer__main {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3rem, 7vw, 5rem);
  grid-template-columns: minmax(13rem, 1.4fr) repeat(3, minmax(9rem, 0.65fr));
}

.site-footer__brand img,
.site-footer__brand svg {
  width: auto;
  height: 2.8rem;
  margin-bottom: 1rem;
}

.site-footer__brand p {
  max-width: 23rem;
}

.site-footer h2 {
  margin-bottom: 1rem;
  color: var(--qz-white);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.site-footer ul {
  display: grid;
  gap: 0.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer a {
  color: #c4cee5;
  text-decoration: none;
}

.site-footer a:hover {
  color: #68cbf4;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.84rem;
}

.site-footer__bottom p {
  margin: 0;
}

/* WordPress alignment and utilities */
.alignleft {
  float: left;
  margin: 0 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0 0 1rem 1.5rem;
}

.aligncenter {
  display: block;
  margin-inline: auto;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
  color: var(--qz-muted);
  font-size: 0.85rem;
}

.sticky {
  border-color: var(--qz-cyan);
}

.bypostauthor {
  border-left-color: var(--qz-cyan);
}

.qz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Neutralize Core-only properties on theme-owned homepage components. */
.qz-home .qz-hero .qz-search-card,
.qz-home .qz-grid--3 > .qz-card,
.qz-home .qz-section--soft .qz-split > .qz-card {
  margin: 0;
}

.qz-home .qz-hero .qz-actions,
.qz-home .qz-section--soft .qz-actions {
  justify-content: normal;
}

.qz-text-center {
  text-align: center;
}

.qz-mb-0 {
  margin-bottom: 0;
}

@media (max-width: 64rem) {
  .site-header__actions .qz-btn--ghost {
    display: none;
  }

  .site-navigation__account {
    display: inline-flex;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
  }

  .qz-grid--4,
  .qz-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qz-steps > .qz-step::after {
    content: none;
  }

  .site-footer__main {
    grid-template-columns: 1.4fr repeat(2, 1fr);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 52rem) {
  /* A filtered header would contain and clip its fixed mobile navigation. */
  .site-header {
    backdrop-filter: none;
  }

  .admin-bar .site-header {
    top: 46px;
  }

  .site-header__inner {
    min-height: 4.5rem;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .site-navigation {
    position: fixed;
    top: 4.5rem;
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    overflow-y: auto;
    align-items: stretch;
    justify-content: flex-start;
    padding: 1.3rem;
    background: var(--qz-white);
  }

  .admin-bar .site-navigation {
    top: calc(4.5rem + 46px);
  }

  .site-navigation.is-open {
    display: block;
  }

  .site-navigation .menu,
  .site-navigation ul {
    display: grid;
    align-items: stretch;
    gap: 0;
  }

  .site-navigation li {
    border-bottom: 1px solid var(--qz-line);
  }

  .site-navigation a {
    display: block;
    padding: 1rem 0.5rem;
    font-size: 1.08rem;
  }

  .site-navigation__account {
    width: 100%;
    margin-top: 1rem;
    text-align: center;
  }

  .site-header__actions {
    display: none;
  }

  .qz-hero__grid,
  .qz-split,
  .qz-content-layout,
  .qz-dashboard {
    grid-template-columns: 1fr;
  }

  .qz-hero h1 {
    max-width: 14ch;
  }

  .qz-grid--3 {
    grid-template-columns: 1fr;
  }

  .qz-cta__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .qz-dashboard__sidebar {
    position: static;
  }
}

@media (max-width: 38rem) {
  .qz-container {
    width: min(calc(100% - 1.25rem), var(--qz-content));
  }

  .site-branding__fallback,
  .site-branding .custom-logo {
    height: 2.25rem;
  }

  .qz-grid--4,
  .qz-post-grid,
  .qz-stat-grid,
  .qz-form-row,
  .site-footer__main {
    grid-template-columns: 1fr;
  }

  .site-footer__brand {
    grid-column: auto;
  }

  .site-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .qz-btn {
    width: 100%;
  }

  .qz-actions {
    display: grid;
  }

}

/* Public marketplace and functional page polish. Scope beats Core's base styles. */
.qz-theme .site-navigation__join {
  display: none;
}

.qz-theme .site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.qz-theme .qz-hero--public {
  background: radial-gradient(ellipse at 85% 15%, #123b67 0%, transparent 55%), var(--qz-navy-deep);
}

.qz-theme .qz-hero--public .qz-hero__grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  gap: clamp(2rem, 6vw, 5.5rem);
}

.qz-theme .qz-hero--public h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 6.5vw, 5.3rem);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.qz-theme .qz-hero--public .qz-hero__note {
  max-width: 36rem;
  margin-top: 1.25rem;
  margin-bottom: 0;
  color: #b9c8df;
  font-size: 0.88rem;
  line-height: 1.6;
}

.qz-theme .qz-service-picker h2 {
  max-width: 15ch;
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.qz-theme .qz-service-picker__list {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 1.35rem 0;
  list-style: none;
}

.qz-theme .qz-service-picker__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--qz-line);
  border-radius: var(--qz-radius-sm);
  background: var(--qz-mist);
  color: var(--qz-navy);
  font-weight: 750;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.qz-theme .qz-service-picker__list a:hover {
  border-color: var(--qz-cyan-dark);
  background: var(--qz-sky);
}

.qz-theme .qz-service-picker__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.4rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--qz-line);
  color: var(--qz-muted);
  font-size: 0.875rem;
}

.qz-theme .qz-service-picker__footer a {
  font-weight: 750;
}

.qz-theme .qz-journey {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.qz-theme .qz-journey__step {
  margin: 0;
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: none;
}

.qz-theme .qz-journey__step .qz-step__number {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.5rem;
  background: var(--qz-sky);
  color: var(--qz-navy);
}

.qz-theme .qz-journey__step p {
  margin-bottom: 0;
  color: var(--qz-muted);
}

.qz-theme .qz-section-footnote {
  margin: 1.5rem 0 0;
  color: var(--qz-muted);
  font-size: 0.9rem;
}

.qz-theme .qz-provider-points {
  display: grid;
  gap: 1.75rem;
}

.qz-theme .qz-provider-points > div {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 1rem;
}

.qz-theme .qz-provider-points > div + div {
  padding-top: 1.75rem;
  border-top: 1px solid var(--qz-line);
}

.qz-theme .qz-provider-points__number {
  display: grid;
  align-items: start;
  color: var(--qz-cyan-dark);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.7;
}

.qz-theme .qz-provider-points p {
  margin-bottom: 0;
  color: var(--qz-muted);
}

.qz-theme .qz-section--compact {
  padding-block: clamp(3rem, 6vw, 5rem);
}

.qz-theme .qz-help-cta {
  background: var(--qz-sky);
  border: 1px solid #c6e7f5;
}

.qz-theme .qz-help-cta h2 {
  max-width: 23ch;
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
}

.qz-theme .qz-help-cta .qz-btn {
  flex-shrink: 0;
}

.qz-theme .site-footer__support {
  display: inline-block;
  overflow-wrap: anywhere;
  color: #8ed6f4;
  text-decoration: underline;
}

.qz-theme.qz-workspace-page {
  background: #f5f8fc;
}

.qz-theme.qz-workspace-page .qz-page-hero {
  padding-block: clamp(1.8rem, 4vw, 3rem) 0.5rem;
  background: transparent;
}

.qz-theme.qz-workspace-page .qz-page-hero__inner {
  max-width: var(--qz-content);
}

.qz-theme.qz-workspace-page .qz-page-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}

.qz-theme.qz-workspace-page .qz-entry.qz-section {
  padding-block: 1.5rem clamp(3rem, 6vw, 5rem);
}

.qz-theme.qz-workspace-page .qz-entry-content > *,
.qz-theme .qz-entry-content > .qz-dashboard,
.qz-theme .qz-entry-content > .qz-auth,
.qz-theme .qz-entry-content > .qz-pricing,
.qz-theme .qz-entry-content > .qz-register {
  max-width: 100%;
}

.qz-theme .qz-dashboard,
.qz-theme .qz-dashboard > *,
.qz-theme .qz-grid > *,
.qz-theme .qz-form > *,
.qz-theme .qz-consent > * {
  min-width: 0;
}

.qz-theme .qz-dashboard.qz-provider-dashboard,
.qz-theme .qz-dashboard.qz-customer-dashboard {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

.qz-theme .qz-dashboard > *,
.qz-theme .qz-dashboard .qz-stack > .qz-card {
  margin-block: 0;
}

.qz-theme .qz-dashboard .qz-card + .qz-card {
  margin-top: 1.25rem;
}

.qz-theme .qz-dashboard .qz-card {
  padding: clamp(1.2rem, 3vw, 2rem);
  border-radius: 1.1rem;
  box-shadow: 0 0.4rem 1.8rem rgba(10, 24, 73, 0.045);
  overflow-wrap: anywhere;
}

.qz-theme .qz-dashboard h1 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.qz-theme .qz-dashboard h2,
.qz-theme .qz-auth h2,
.qz-theme .qz-register h2,
.qz-theme .qz-pricing h2 {
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  line-height: 1.25;
}

.qz-theme .qz-dashboard h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.3;
}

.qz-theme .qz-dashboard h4,
.qz-theme .qz-dashboard h5 {
  font-size: 1.125rem;
  line-height: 1.4;
}

.qz-theme .qz-dashboard-support {
  gap: 0.35rem 0.8rem;
  margin: 0;
  padding: 0.9rem 1.1rem;
  border-color: #c5d8e7;
  background: #edf5fa;
}

.qz-theme .qz-dashboard-support a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
}

.qz-theme .qz-dashboard .qz-balance {
  background: linear-gradient(115deg, #fff 55%, #e9f7fd);
  border-top: 0.25rem solid var(--qz-cyan);
}

.qz-theme .qz-dashboard .qz-balance h2 {
  font-size: clamp(2.3rem, 5vw, 3.3rem);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.qz-theme .qz-balance form {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.qz-theme .qz-balance label {
  display: grid;
  gap: 0.35rem;
  min-width: min(100%, 14rem);
  font-size: 0.9rem;
  font-weight: 700;
}

.qz-theme .qz-dashboard .qz-quote {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: 1.25rem;
  border: 1px solid var(--qz-line);
  border-radius: 0.9rem;
  background: #f7fafd;
}

.qz-theme .qz-conversation {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: 1.5rem;
  border: 1px solid #d2e0ec;
  border-radius: 0.9rem;
  background: var(--qz-white);
}

.qz-theme .qz-conversation > p:not(.qz-muted) {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: var(--qz-sky);
  overflow-wrap: anywhere;
}

.qz-theme .qz-conversation .qz-form {
  margin-top: 1.2rem;
}

.qz-theme .qz-accepted-contacts {
  background: #effaf5;
  border: 2px solid #087f5b;
}

.qz-theme .qz-accepted-contacts li {
  padding-block: 0.3rem;
  overflow-wrap: anywhere;
}

.qz-theme .qz-accepted-contacts a {
  font-weight: 750;
}

.qz-theme .qz-notice,
.qz-theme .qz-quote-confirmation {
  scroll-margin-top: 7rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.qz-theme .qz-notice[role="status"],
.qz-theme .qz-quote-confirmation {
  border-width: 1px 1px 1px 0.3rem;
  border-style: solid;
}

.qz-theme .qz-consent {
  min-inline-size: 0;
  padding: clamp(0.9rem, 2vw, 1.25rem);
  border-radius: 0.85rem;
}

.qz-theme .qz-consent legend {
  max-width: 100%;
  line-height: 1.4;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.qz-theme .qz-form {
  gap: 0.85rem;
}

/* Keep the wallet explanation link in one focus box, still wrapping at narrow widths. */
.qz-theme .qz-provider-dashboard .qz-balance .qz-form > p.qz-muted:not(.qz-collection-notice) > a {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  scroll-margin-block: 8rem 1rem;
}

.qz-theme .qz-form label,
.qz-theme .qz-auth #loginform label {
  font-size: 0.94rem;
  font-weight: 650;
  color: var(--qz-navy);
}

.qz-theme .qz-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.qz-theme .qz-form select,
.qz-theme .qz-form textarea,
.qz-theme .qz-balance select,
.qz-theme .qz-auth #loginform input:not([type="checkbox"]):not([type="hidden"]):not([type="submit"]) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #7b8da3;
  border-radius: 0.65rem;
  background: #fff;
  color: var(--qz-ink);
  font-size: 1rem;
}

.qz-theme .qz-form textarea {
  min-height: 8rem;
}

.qz-theme .qz-form input[type="checkbox"],
.qz-theme .qz-form input[type="radio"] {
  flex: 0 0 auto;
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.1rem 0 0;
  accent-color: var(--qz-navy);
}

.qz-theme .qz-form fieldset {
  min-inline-size: 0;
}

.qz-theme .qz-form fieldset.qz-step {
  border: 0;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
}

.qz-theme .qz-form .qz-step > legend {
  color: var(--qz-navy);
  font-weight: 750;
  margin-bottom: 0.8rem;
  padding: 0;
}

.qz-theme .qz-request-review {
  background: #edf7fc;
  border-radius: 1rem;
  padding: clamp(1rem, 2vw, 1.5rem);
}
.qz-theme .qz-request-review h3 { margin-top: 0; }
.qz-theme .qz-request-review dt { color: var(--qz-navy); font-weight: 750; }
.qz-theme .qz-request-review dd { margin: 0.25rem 0 1rem; overflow-wrap: anywhere; white-space: pre-wrap; }
.qz-theme .qz-request-review dd:last-child { margin-bottom: 0; }

.qz-theme .qz-form input:focus-visible,
.qz-theme .qz-form select:focus-visible,
.qz-theme .qz-form textarea:focus-visible {
  outline: 0.2rem solid #08618d;
  outline-offset: 0.15rem;
}

/* Keep Core's programmatic and consent focus visible on pale workspace panels. */
.qz-theme .qz-notice:focus,
.qz-theme .qz-quote-confirmation:focus,
.qz-theme .qz-accepted-contacts:focus,
.qz-theme .qz-consent__confirm:focus-within {
  outline: 0.2rem solid #08618d;
  outline-offset: 0.2rem;
}

.qz-theme .qz-form fieldset > label:has(> input[type="checkbox"]),
.qz-theme .qz-form fieldset > label:has(> input[type="radio"]) {
  display: flex;
  align-items: start;
  gap: 0.7rem;
  padding-block: 0.5rem;
}

.qz-theme .qz-consent__confirm {
  min-height: 3rem;
  padding: 0.9rem;
  font-weight: 550;
}

.qz-theme .qz-form label.qz-consent-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.qz-theme .qz-consent-check > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.qz-theme .qz-button {
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border: 2px solid transparent;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
}

.qz-theme .qz-form > .qz-button {
  justify-self: start;
}

.qz-theme button:disabled,
.qz-theme input:disabled,
.qz-theme select:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.qz-theme .qz-form [aria-invalid="true"] {
  border-color: var(--qz-danger);
  box-shadow: 0 0 0 1px var(--qz-danger);
}

.qz-theme .qz-auth {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.5rem;
  align-items: start;
}

.qz-theme .qz-auth > .qz-card {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.qz-theme .qz-auth #loginform label {
  display: block;
  margin-bottom: 0.4rem;
}

.qz-theme .qz-auth #loginform .login-remember label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
}

.qz-theme .qz-dashboard table,
.qz-theme .qz-pricing table {
  table-layout: fixed;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}

.qz-theme .qz-dashboard th,
.qz-theme .qz-pricing th {
  color: var(--qz-navy);
  font-size: 0.8rem;
  letter-spacing: 0.025em;
  line-height: 1.4;
}

.qz-theme .qz-dashboard .qz-stack > p:only-of-type {
  padding: 1.5rem;
  border: 1px dashed #adbed1;
  border-radius: 0.9rem;
  background: #fff;
  color: var(--qz-muted);
}

@media (min-width: 64rem) {
  .qz-theme .qz-dashboard .qz-request > .qz-quote:has(> .qz-conversation) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 2rem;
    align-items: start;
  }

  .qz-theme .qz-dashboard .qz-request > .qz-quote:has(> .qz-conversation) > * {
    grid-column: 1;
  }

  .qz-theme .qz-dashboard .qz-request > .qz-quote:has(> .qz-conversation) > .qz-conversation {
    grid-column: 2;
    grid-row: 1 / span 12;
    margin-top: 0;
  }
}

@media (max-width: 64rem) {
  .qz-theme .site-header__actions {
    display: none;
  }

  .qz-theme .site-navigation__join {
    display: inline-flex;
  }
}

@media (max-width: 52rem) {
  .qz-theme .qz-hero--public .qz-hero__grid,
  .qz-theme .qz-journey {
    grid-template-columns: minmax(0, 1fr);
  }

  .qz-theme .qz-service-picker {
    width: 100%;
  }

  .qz-theme .site-navigation__join {
    display: flex;
    width: 100%;
    margin-top: 0.75rem;
    padding: 1rem;
  }

  .qz-theme.qz-workspace-page .qz-page-hero {
    padding-top: 1.75rem;
  }
}

@media (max-width: 38rem) {
  .qz-theme .qz-dashboard th,
  .qz-theme .qz-dashboard td,
  .qz-theme .qz-pricing th,
  .qz-theme .qz-pricing td {
    padding: 0.65rem 0.45rem;
  }

  .qz-theme .qz-dashboard .qz-card,
  .qz-theme .qz-dashboard .qz-quote,
  .qz-theme .qz-conversation {
    padding: 1rem;
  }

  .qz-theme .qz-dashboard .qz-actions,
  .qz-theme .qz-balance form {
    align-items: stretch;
    flex-direction: column;
  }

  .qz-theme .qz-button,
  .qz-theme .qz-form > .qz-button {
    width: 100%;
    justify-self: stretch;
  }
}

.qz-theme .qz-dashboard-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}
.qz-theme .qz-dashboard-heading h2 { margin: 0; }
.qz-theme .qz-dashboard-signout { margin-left: auto; }
@media (max-width: 38rem) {
  .qz-theme .qz-dashboard-heading { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .qz-cta,
  .qz-btn,
  .qz-sidebar {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  a {
    color: #000;
  }
}
