.ma-badges{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:6px 0}.ma-badge{font-size:12px;background:#e9f4ec;border:1px solid #b5d5bd;color:#194d2a;border-radius:20px;padding:3px 10px}.ma-ad{background:#f8edda;border-color:#d7ba85;color:#80591d}.ma-price{font-size:13px;color:#173e33;font-weight:700}.ma-studs{direction:rtl}.ma-stud-card{border:1px solid #d9c6a8;border-radius:18px;padding:20px;margin:20px 0;background:#fcfaf5}.ma-stud-card img{max-height:240px;width:100%;object-fit:cover;border-radius:12px}.ma-stud-gallery{display:flex;flex-wrap:wrap;gap:12px}.ma-stud-gallery img{width:160px;height:160px;object-fit:cover;border-radius:12px}.ma-studs .ah-horse-card{margin:20px 0}.hp-form__field[hidden]{display:none!important}
.ma-owner-profile{direction:rtl}.ma-owner-profile header{margin-bottom:22px}.ma-owner-logo{width:100px;height:100px;object-fit:contain;border-radius:16px}.ma-owner-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;border:1px solid #d9c6a8;background:#fcfaf5;border-radius:16px;padding:20px}.ma-owner-facts dt{font-weight:700}.ma-owner-facts dd{margin:0}.ma-owner-profile .ah-horse-card{margin:18px 0}.ma-owner-link{color:#225545;font-weight:600}.ma-card-owner{display:block;text-align:right;direction:rtl;padding:10px 20px;border-top:1px solid #d9c6a8;color:#225545;font-size:12px}
/* Consistent Arabic typography and lighter, structured page surfaces. */
html[dir="rtl"] body{font-size:15px;line-height:1.75;color:#36443e}
html[dir="rtl"] h1,html[dir="rtl"] h2,html[dir="rtl"] h3{line-height:1.5;letter-spacing:0;font-weight:600}
html[dir="rtl"] .site-header{position:sticky;top:0;z-index:900;background:#fffffff5;backdrop-filter:none;box-shadow:0 2px 18px #173e330b;border-bottom:1px solid #e9ede8}
html[dir="rtl"] .header-navbar{padding-top:15px;padding-bottom:15px;min-height:72px}
html[dir="rtl"] .header-logo__name{font-size:24px;line-height:1.4;font-weight:700}
html[dir="rtl"] .header-navbar .button{font-size:13px;line-height:1.5;padding:11px 17px;border-radius:9px}
.admin-bar .site-header{top:32px}
.ah-home .ah-hero{border-radius:22px;border-inline-start-width:3px;padding:48px 6%;background:radial-gradient(ellipse at 5% 20%,#e2d1ac4d,transparent 65%),linear-gradient(130deg,#f6f5ee,#edece3)}
.ah-home .ah-hero h1,.ah-home .ah-hero h2{font-size:clamp(29px,4vw,46px);line-height:1.5;font-weight:700;margin:12px 0 18px}
.ah-home .ah-hero>p:not(.ah-eyebrow){font-size:16px;line-height:1.85;max-width:620px;margin-bottom:0}
.ah-home .ah-eyebrow{font-size:12px;letter-spacing:0;font-weight:700;color:#967341}
.ah-home .ah-actions{margin-top:25px;gap:10px}
.ah-home .wp-block-button.ah-button>a{font-size:14px;line-height:1.6;padding:12px 23px;border-radius:10px}
.ah-home .ah-search{padding:25px;border-radius:18px;margin:24px 0 38px;box-shadow:0 7px 28px #173e3307}
.ah-home .ah-search h2,.ah-home .ah-latest h2,.ah-home .ah-steps h2{font-size:25px;margin-top:0;margin-bottom:20px;line-height:1.5}
.ah-home .ah-latest{margin:36px 0 44px}
.ah-home .ah-steps{border-radius:18px;padding:28px;background:#f2f5f0}
.ah-home .ah-steps h3{font-size:19px}.ah-home .ah-steps p{font-size:14px;line-height:1.8}
.hp-listing--view-page .hp-listing__title{font-size:30px;line-height:1.5;margin-bottom:16px;color:#193d32}
.hp-listing--view-page .hp-listing__description{font-size:15px;line-height:1.9;margin:24px 0}
.hp-listing--view-page .hp-listing__attributes--primary{border:1px solid #e2e6df;border-radius:18px;background:#fff;padding:5px 18px;box-shadow:0 6px 24px #173e3307;text-align:right}
.hp-listing--view-page .hp-listing__attributes--primary>.hp-row{display:block;margin:0}
.hp-listing--view-page .hp-listing__attributes--primary>.hp-row>div{width:100%;max-width:100%;padding:0;margin:0}
.hp-listing--view-page .hp-listing__attributes--primary .hp-listing__attribute{display:grid;grid-template-columns:minmax(100px,.9fr) minmax(0,1fr);align-items:center;gap:12px;padding:13px 5px;border-bottom:1px solid #edf0ea;font-size:14px;line-height:1.7;margin:0;text-align:right}
.hp-listing--view-page .hp-listing__attributes--primary .hp-row>div:last-child .hp-listing__attribute{border-bottom:0}
.hp-listing--view-page .hp-listing__attribute strong{font-size:13px;font-weight:600;color:#788276}
.ma-owner-panel{text-align:center;padding:24px 18px;background:linear-gradient(150deg,#faf9f4,#f1f5ee);border:1px solid #dfe6d9;border-radius:18px;margin-top:18px}
.ma-owner-identity{display:flex;flex-direction:column;align-items:center;text-decoration:none;color:#193d32}.ma-owner-panel h3{font-size:19px;margin:12px 0 18px}
.ma-owner-avatar{display:block;width:76px;height:76px;object-fit:contain;border:1px solid #dce3d5;border-radius:50%;background:white;padding:8px}.ma-owner-placeholder{color:#a3b19a;padding:12px}
.ma-owner-profile-button{display:inline-block;font-size:13px!important;line-height:1.6!important;padding:11px 18px!important;border-radius:10px!important}
.ma-owner-panel--guest p{font-size:13px;line-height:1.8;margin:0}
@media(max-width:767px){
 html[dir="rtl"] body{font-size:14px;line-height:1.7}
 html[dir="rtl"] .header-navbar{padding:12px 16px;min-height:65px}
 html[dir="rtl"] .header-logo__name{font-size:21px}
 html[dir="rtl"] .header-navbar .button{font-size:12px;padding:10px 13px}
 .admin-bar .site-header{top:46px}
 .ah-home .ah-hero{padding:27px 18px;border-radius:18px}
 .ah-home .ah-hero h1,.ah-home .ah-hero h2{font-size:30px;line-height:1.5;margin:8px 0 14px}
 .ah-home .ah-hero>p:not(.ah-eyebrow){font-size:14px;line-height:1.85}
 .ah-home .ah-actions{gap:9px;margin-top:20px}
 .ah-home .wp-block-button.ah-button>a{font-size:13px;padding:11px 16px}
 .ah-home .ah-search,.ah-home .ah-steps{padding:20px 16px}
 .ah-home .ah-search h2,.ah-home .ah-latest h2,.ah-home .ah-steps h2{font-size:22px}
 .ah-carousel-slide .ah-card-body h3{font-size:21px;line-height:1.5}
 .hp-listing--view-page .hp-listing__title{font-size:26px}
 .hp-listing--view-page .hp-listing__attributes--primary{padding:3px 12px;border-radius:15px}
 .hp-listing--view-page .hp-listing__attributes--primary .hp-listing__attribute{font-size:13px;padding:11px 3px;gap:10px}
 .hp-listing--view-page .hp-listing__attribute strong{font-size:12px}
 .hp-listing--view-page .hp-listing__description{font-size:14px;line-height:1.85}
}
/* The theme's outer overflow clip prevents CSS sticky from following the viewport. */
.site-container{overflow:visible}
.ah-home .ah-horse-carousel{margin-inline:-12px}
.hp-listing--view-page .hp-listing__attributes--primary{padding:5px 18px!important;border-radius:18px!important;box-shadow:0 6px 24px #173e3307!important}
.hp-listing--view-page .hp-listing__attributes--primary .hp-listing__attribute{padding:13px 5px!important;margin:0!important}
@media(max-width:767px){.hp-listing--view-page .hp-listing__attributes--primary{padding:3px 12px!important}.hp-listing--view-page .hp-listing__attributes--primary .hp-listing__attribute{padding:11px 3px!important}}
@media(max-width:600px){.admin-bar .site-header{top:0}}
html body .site-container{overflow:visible!important}
/* Curated studs are a separate destination, with an editorial two-column grid. */
.ma-featured-home{margin:44px 0;padding:28px 24px;border:1px solid #e2d8c5;border-radius:22px;background:linear-gradient(145deg,#faf8f2,#f1f4ee)}
.ma-featured-home>.wp-block-heading{font-size:25px;line-height:1.5;color:#193d32;margin:0 0 10px}.ma-featured-home>p{font-size:14px;line-height:1.8;color:#788171}.ma-featured-home>p:last-child{text-align:center;margin:22px 0 0}
.ma-featured-home>p:last-child a{display:inline-block;border:1px solid #b19a71;border-radius:10px;padding:10px 22px;color:#71572e;font-weight:600}
.ma-stud-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:25px 0}
.ma-stud-tile{overflow:hidden;border:1px solid #e2d6c0;border-radius:20px;background:#fff;box-shadow:0 6px 22px #7d63300a}.ma-stud-tile>a{display:block;text-decoration:none;color:inherit;height:100%}.ma-stud-tile img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.ma-stud-monogram{display:grid;place-items:center;aspect-ratio:4/3;background:radial-gradient(ellipse at top,#e5d3ae,#e8ede1);color:#7b6747;font-size:55px}.ma-stud-tile-body{padding:22px}.ma-stud-label{display:inline-block;color:#89703f;font-size:11px;border:1px solid #d4bd8c;border-radius:20px;padding:3px 10px}.ma-stud-tile h2{font-size:23px!important;margin:12px 0 8px!important;line-height:1.5!important;color:#193d32}.ma-stud-tile p{font-size:13px;line-height:1.8;color:#788171;margin:0 0 14px}.ma-stud-more{font-size:12px;color:#8a6c3c}.ma-studs-empty{padding:22px;text-align:center;background:#ffffff80;border:1px dashed #d9ceb6;border-radius:14px;font-size:14px;color:#7c816f}
.ma-stud-hero{padding:32px;background:linear-gradient(135deg,#f8f1e5,#edf3e9);border:1px solid #ddcba7;border-radius:20px;margin-bottom:24px}.ma-stud-hero h2{font-size:30px;margin:12px 0 0;color:#193d32}.ma-stud-horses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:24px}.ma-stud-horses .ah-horse-card{margin:0}.ma-stud-horses .ah-card-link{display:flex;flex-direction:column}.ma-stud-horses .ah-card-photo{height:240px;min-height:240px}
.hp-listing--view-page .hp-section__title{font-size:24px!important;line-height:1.5!important;margin-bottom:22px}
.ah-contact-actions{text-align:center;background:#f4f6f0;border:1px solid #e0e6d9;border-radius:18px;padding:24px 18px;margin:24px 0}.ah-contact-actions h3{font-size:21px;margin:0 0 18px;color:#193d32}.ma-contact-buttons{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:center;gap:10px}.ma-contact-buttons>p,.ma-contact-buttons>details{margin:0}.ma-contact-buttons .button,.ma-contact-buttons summary{display:block;text-align:center;font-size:13px!important;line-height:1.6!important;padding:11px 18px!important;border:1px solid #225545!important;border-radius:10px!important;min-width:145px;cursor:pointer;box-shadow:none!important}.ma-contact-buttons summary{background:#fff;color:#225545;list-style:none}.ma-contact-buttons summary::-webkit-details-marker{display:none}.ma-contact-buttons details>p{margin:10px 0 0;padding:10px;background:white;border:1px solid #e0e6d9;border-radius:8px;font-size:15px}
@media(max-width:767px){.ma-featured-home{padding:22px 16px;margin:32px 0}.ma-featured-home>.wp-block-heading{font-size:22px}.ma-stud-grid{gap:12px}.ma-stud-tile{border-radius:14px}.ma-stud-tile-body{padding:13px 10px}.ma-stud-tile h2{font-size:18px!important}.ma-stud-tile p{font-size:12px}.ma-stud-more{font-size:11px}.ma-stud-label{font-size:10px;padding:2px 7px}.ma-stud-hero{padding:23px}.ma-stud-hero h2{font-size:25px}.ma-stud-horses{grid-template-columns:1fr}.hp-listing--view-page .hp-section__title{font-size:21px!important}.ah-contact-actions{padding:22px 14px}.ah-contact-actions h3{font-size:19px}.ma-contact-buttons{gap:9px}.ma-contact-buttons>p,.ma-contact-buttons>details{width:100%;max-width:270px}.ma-contact-buttons .button,.ma-contact-buttons summary{width:100%;min-width:0;box-sizing:border-box}}
body.hp-template--listing-view-page .hp-section__title{font-size:24px!important;line-height:1.5!important}
@media(max-width:767px){body.hp-template--listing-view-page .hp-section__title{font-size:21px!important}}
.ma-owner-profile--featured>header{padding:28px;border-radius:20px;border:1px solid #d6be90;background:radial-gradient(ellipse at top left,#e3cf9f70,transparent 65%),linear-gradient(135deg,#faf7ef,#eff4eb)}
.ma-featured-home .wp-block-heading{font-size:25px;line-height:1.5;color:#193d32;margin:0 0 10px}.ma-featured-home p{font-size:14px;line-height:1.8;color:#788171}.ma-featured-home p:last-child:has(>a){text-align:center;margin-top:22px}.ma-featured-home p:last-child>a{display:inline-block;border:1px solid #b19a71;border-radius:10px;padding:10px 22px;color:#71572e;font-weight:600;text-decoration:none}
@media(max-width:767px){.ma-featured-home .wp-block-heading{font-size:22px}}

/* Fixed navigation must use the viewport, not a filtered sticky header. */
html[dir="rtl"] .site-header{-webkit-backdrop-filter:none;backdrop-filter:none;background:#fff}
@media(max-width:74.99em){
 html[dir="rtl"] .header-navbar__burger>ul{inset:0 0 auto auto;width:min(72vw,360px);height:100vh;height:100dvh;max-height:none;box-sizing:border-box;padding:56px 24px 24px;overflow-y:auto;overscroll-behavior:contain;box-shadow:-12px 0 40px #173e3326;z-index:10000}
 html[dir="rtl"] .header-navbar__burger>ul::before{top:20px;left:20px;color:#225545}
 html[dir="rtl"] .header-navbar__burger>ul>li>a{display:block;padding:10px 0;font-size:16px;line-height:1.7}
 html[dir="rtl"] .header-navbar__burger>ul>li.current-menu-item::before{right:-24px}
}

/* A compact, shared type scale for every public page and account screen. */
html[dir="rtl"] body .site-container{font-size:15px;line-height:1.75}
html[dir="rtl"] body .site-container :is(h1,.page__title,.hp-page__title){font-size:26px!important;line-height:1.5!important}
html[dir="rtl"] body .site-container :is(h2,.hp-section__title){font-size:22px!important;line-height:1.5!important}
html[dir="rtl"] body .site-container h3{font-size:18px!important;line-height:1.55!important}
html[dir="rtl"] body .site-container :is(h4,h5,h6){font-size:16px!important;line-height:1.6!important}
html[dir="rtl"] body .site-container :is(.hp-form__label,.hp-field__label,label){font-size:14px;line-height:1.7}
html[dir="rtl"] body .site-container :is(input,select,textarea){font-size:15px}
html[dir="rtl"] body .site-container .header-logo__name{font-size:22px;line-height:1.5}
html[dir="rtl"] body .site-container .ah-hero :is(h1,h2){font-size:28px!important;line-height:1.6!important}
html[dir="rtl"] body .site-container .ah-carousel-slide h3{font-size:19px!important}
@media(max-width:767px){
 html[dir="rtl"] body .site-container{font-size:14px}
 html[dir="rtl"] body .site-container :is(h1,.page__title,.hp-page__title){font-size:23px!important}
 html[dir="rtl"] body .site-container :is(h2,.hp-section__title){font-size:20px!important}
 html[dir="rtl"] body .site-container h3{font-size:17px!important}
 html[dir="rtl"] body .site-container :is(h4,h5,h6){font-size:15px!important}
 html[dir="rtl"] body .site-container .ah-hero :is(h1,h2){font-size:25px!important}
 html[dir="rtl"] body .site-container .header-logo__name{font-size:20px}
 html[dir="rtl"] body .site-container .ah-carousel-slide h3{font-size:18px!important}
}

.ah-media-gallery{margin-bottom:24px;min-width:0}.ah-media-stage{background:#f2f3ee;border-radius:16px;overflow:hidden}.ah-media-slide[hidden]{display:none!important}.ah-media-slide img,.ah-media-slide video{display:block;width:100%;aspect-ratio:4/3;max-height:560px;object-fit:contain;background:#eef0ea}.ah-media-slide a{display:block}.ah-media-thumbnails{display:flex;gap:10px;overflow-x:auto;padding:12px 2px;align-items:stretch}.ah-media-thumbnails button{flex:0 0 92px;padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;background:#edf1e8;color:#225545;min-height:70px;box-shadow:none;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;font-size:11px;line-height:1.6;cursor:pointer}.ah-media-thumbnails button[aria-pressed="true"]{border-color:#a8874f}.ah-media-thumbnails button:focus-visible{outline:2px solid #225545;outline-offset:2px}.ah-media-thumbnails img{width:100%;height:70px;object-fit:cover}.ah-media-play{font-size:23px;line-height:1}.ah-media-slide video:focus-visible{outline:2px solid #a8874f;outline-offset:-3px}
