/* RC89: progressive, scoped visual polish for public marketplace. No private pricing shown. */
:root{--mz89-ink:#15334b;--mz89-muted:#64788b;--mz89-teal:#0d7773;--mz89-border:#dfe8ec;--mz89-soft:#f5f9fa}
.mz67-home .mz67-hero{min-height:0!important;padding-top:45px;padding-bottom:45px;align-items:center}
.mz67-home .mz67-hero-content>p{max-width:690px;line-height:1.75}
.mz67-home .mz67-hero-content h1{line-height:1.17;letter-spacing:-.025em}
.mz67-home .mz69-search-box{box-shadow:0 12px 34px rgba(9,38,58,.09);border-color:#d7e4e8;background:#fff}
.mz67-home .mz69-home-search input:focus-visible,.mz67-home .mz69-home-search select:focus-visible,
.mzgp-profile a:focus-visible,.mz89-tutor-card a:focus-visible{outline:3px solid #4cb2aa;outline-offset:2px}
.mz67-home .mz67-subjects{padding-top:48px;padding-bottom:40px}
.mz67-home .mz67-subject-grid{gap:11px}
.mz67-home .mz67-subject-grid a{min-height:105px;transition:border-color .15s,transform .15s;box-shadow:none}
.mz67-home .mz67-subject-grid a:hover{transform:translateY(-2px);border-color:#79bbb7}
.mz76-marketplace-home{max-width:1370px;margin:0 auto;padding:0 20px 46px}
.mz76-marketplace-home .mz76-home-head{display:flex;justify-content:space-between;align-items:end;gap:14px;flex-wrap:wrap;margin-bottom:16px}
.mz76-marketplace-home .mz76-home-head h2{margin-bottom:4px;line-height:1.25;font-size:clamp(24px,2.4vw,32px);color:var(--mz89-ink)}
.mz76-marketplace-home .mz76-home-head small{font-size:12px;line-height:1.55;color:var(--mz89-muted);font-weight:500}
.mz76-marketplace-home .mz76-home-band{margin:24px 0 32px}
.mz76-marketplace-home .mz76-band-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.mz76-marketplace-home .mz76-band-heading h3{margin:0;font-size:19px;line-height:1.45;color:var(--mz89-ink)}
.mz76-marketplace-home .mz76-band-heading small{color:var(--mz89-muted);font-weight:400;font-size:12px}
.mz73-unified-results{min-width:0}
.mz73-unified-results .mz73-order-hint{border-left-color:var(--mz89-teal);border-radius:6px;background:#f1f8f7;line-height:1.65;font-size:12px;margin:12px 0 20px}
.mz76-directory-band{margin:25px 0 32px}
.mz76-directory-band>h3{font-size:18px;line-height:1.4;color:var(--mz89-ink);font-weight:750;margin:0 0 13px}
/* Use a dense but readable grid. The sidebar search results fit three cards on desktop;
   the wider home panel fits four. This avoids the old huge blank card bodies. */
.mz73-unified-results .mz73-unified-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.mz76-marketplace-home .mz73-unified-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.mz73-unified-grid>.mzgp-card{display:flex;flex-direction:column;justify-content:flex-start!important;min-width:0;min-height:0!important;height:auto!important;max-width:none!important;margin:0!important;padding:12px!important;background:#fff;border:1px solid var(--mz89-border)!important;border-radius:15px!important;box-shadow:0 5px 20px rgba(18,52,72,.055)!important;transition:transform .18s,box-shadow .18s,border-color .18s}
.mz73-unified-grid>.mzgp-card:hover{transform:translateY(-2px);border-color:#aad4d0!important;box-shadow:0 12px 27px rgba(18,52,72,.10)!important}
.mz73-unified-grid>.mzgp-card .mzgp-card-main{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:11px!important;min-width:0}
.mz73-unified-grid>.mzgp-card .mzgp-avatar{display:flex;align-items:center;justify-content:center;width:100%!important;max-width:none!important;min-width:0;flex:0 0 auto!important;height:160px!important;max-height:160px!important;margin:0!important;padding:0!important;background:#edf5f6;border:0!important;border-radius:10px!important;overflow:hidden}
.mz73-unified-grid>.mzgp-card .mzgp-avatar img{display:block;width:100%!important;height:100%!important;max-height:none!important;max-width:none!important;object-fit:cover;object-position:center 30%;border-radius:0!important}
.mz73-unified-grid>.mzgp-card .mzgp-avatar img.mz75-avatar-default{object-fit:contain!important;padding:5px;box-sizing:border-box}
.mz73-unified-grid>.mzgp-card .mzgp-card-info{display:block;min-width:0;flex:1 1 auto}
.mz73-unified-grid>.mzgp-card .mzgp-card-info h3{margin:9px 0 5px!important;font-size:16px!important;line-height:1.4!important;color:var(--mz89-ink);font-weight:750}
.mz73-unified-grid>.mzgp-card .mzgp-card-info h3 a{color:inherit;text-decoration:none!important}
.mz73-unified-grid>.mzgp-card .mzgp-card-info h3 a:hover{color:var(--mz89-teal)}
.mz73-unified-grid>.mzgp-card .mzgp-badges{display:flex;flex-wrap:wrap;gap:5px;margin:2px 0 0;line-height:1.4}
.mz73-unified-grid>.mzgp-card .mzgp-badges>*{max-width:100%;line-height:1.45;white-space:normal;font-size:10px!important}
.mz73-unified-grid>.mzgp-card .mzgp-card-info p{font-size:12px;line-height:1.6;margin:5px 0!important;color:var(--mz89-muted);overflow-wrap:anywhere}
.mz73-unified-grid>.mzgp-card .mz89-card-meta{font-weight:650;color:#344e60!important}
.mz73-unified-grid>.mzgp-card .mz89-card-focus{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-height:3.2em;min-height:0!important;color:#344c5c!important}
.mz73-unified-grid>.mzgp-card .mz73-demo-disclaimer{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px!important;color:#758596!important}
.mz73-unified-grid>.mzgp-card .mzgp-rating{font-weight:650;color:#866625!important}
.mz73-unified-grid>.mzgp-card .mzgp-card-side{display:block!important;margin:auto 0 0!important;padding-top:12px!important;min-width:0;width:100%}
.mz73-unified-grid>.mzgp-card .mzgp-card-side .mzgp-btn{display:flex;align-items:center;justify-content:center;min-height:40px;width:100%!important;padding:10px 12px!important;text-align:center;font-size:12px!important;font-weight:700!important;white-space:normal;border-radius:9px!important;background:var(--mz89-teal)!important;color:#fff!important;text-decoration:none!important}
.mz73-unified-grid>.mzgp-card .mzgp-card-side .mzgp-btn:hover{background:#075d5c!important}
.mz73-unified-grid>.mz73-sample-card{background:#fdfefe}
.mz73-unified-grid>.mz73-sample-card .mz73-demo-label{background:#f2f4f6;color:#546573;border-color:#dce4e8;font-size:10px}
.mz73-unified-grid>.mz73-sample-card .mzgp-card-side .mzgp-btn{background:#e8f2f2!important;color:#0c6c69!important}
.mz73-unified-grid>.mz73-sample-card .mzgp-card-side .mzgp-btn:hover{background:#d8eeee!important}
.mz73-unified-results .mzgp-pagination{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:21px 0 36px}
/* Teacher detail: improve readable hierarchy without rewriting the existing contact/consent flows. */
.mzgp-profile{max-width:1100px!important;padding:20px 18px 60px}
.mzgp-profile>.mzgp-panel{border-radius:18px;border:1px solid var(--mz89-border);box-shadow:0 8px 30px rgba(15,48,65,.05);padding:clamp(18px,3vw,36px)}
.mzgp-profile .mzgp-profile-header{display:flex;align-items:flex-start;gap:22px;flex-wrap:wrap;padding-bottom:24px;border-bottom:1px solid #e5ecee}
.mzgp-profile .mzgp-profile-header .mzgp-avatar{overflow:hidden;border-radius:13px;background:#eaf2f4}
.mzgp-profile .mzgp-profile-header h1{line-height:1.24;margin:10px 0 12px;color:var(--mz89-ink)}
.mzgp-profile .mzgp-detail-grid{background:#f7fafb;border:1px solid #e2ecee;border-radius:11px;padding:15px;margin:16px 0}
.mzgp-profile>.mzgp-panel h2{font-size:20px;line-height:1.45;margin:27px 0 12px;color:var(--mz89-ink)}
.mzgp-profile .mzgp-bio{line-height:1.85;color:#324b60;overflow-wrap:anywhere}
.mzgp-profile .mzgp-actions{display:flex;flex-wrap:wrap;gap:9px}
.mzgp-profile .mzgp-actions .mzgp-btn{min-height:43px;border-radius:9px}
/* WooCommerce-owned payment form: visual corrections only. Gateway authorization, country
   confirmation, order totals and settlement hooks are deliberately unchanged. */
body.woocommerce-order-pay .mzsuite-pay-intro,body.woocommerce-order-pay .woocommerce{max-width:1160px;margin-left:auto;margin-right:auto}
body.woocommerce-order-pay .mzsuite-pay-intro{background:linear-gradient(105deg,#13334e,#0c6866);border-radius:17px;padding:clamp(20px,3vw,35px)!important;box-sizing:border-box;color:#f4f9fb!important}
body.woocommerce-order-pay .mzsuite-pay-intro h2{font-size:clamp(23px,2.5vw,32px)!important;line-height:1.25;color:#fff!important;margin:10px 0 15px}
body.woocommerce-order-pay .mzsuite-pay-intro p,body.woocommerce-order-pay .mzsuite-pay-intro small{color:#dcebee!important;line-height:1.65}
body.woocommerce-order-pay .mzsuite-pay-summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:15px 0}
body.woocommerce-order-pay .mzsuite-pay-summary>span{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px;min-width:0;padding:9px 12px;border:1px solid rgba(255,255,255,.25);border-radius:9px;white-space:normal;color:#fff}
body.woocommerce-order-pay .mzsuite-pay-summary .woocommerce-Price-amount{display:inline!important;white-space:nowrap}
body.woocommerce-order-pay .woocommerce .woocommerce-error{border-top-color:#c74343;line-height:1.65;overflow-wrap:anywhere}
body.woocommerce-order-pay .woocommerce #payment{border-radius:12px;overflow:hidden}
body.woocommerce-order-pay .woocommerce #payment #place_order{min-height:46px;border-radius:9px}
@media(max-width:1290px){.mz76-marketplace-home .mz73-unified-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1030px){.mz73-unified-results .mz73-unified-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mz76-marketplace-home .mz73-unified-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:690px){.mz73-unified-results .mz73-unified-grid,.mz76-marketplace-home .mz73-unified-grid{grid-template-columns:1fr}.mz73-unified-grid>.mzgp-card .mzgp-avatar{height:175px!important;max-height:175px!important}.mz76-marketplace-home{padding:0 15px 30px}.mz76-marketplace-home .mz76-band-heading{display:block}.mzgp-profile .mzgp-profile-header{gap:14px}.mzgp-profile>.mzgp-panel{padding:15px}.mz67-home .mz67-hero{padding:28px 16px}.mz67-home .mz67-hero-media{display:none}body.woocommerce-order-pay .mzsuite-pay-intro{margin:12px;padding:18px!important}}
@media(prefers-reduced-motion:reduce){.mz73-unified-grid>.mzgp-card,.mz67-home .mz67-subject-grid a{transition:none!important}.mz73-unified-grid>.mzgp-card:hover,.mz67-home .mz67-subject-grid a:hover{transform:none!important}}
