/* LAP foundation — rules shared by every section. Values come from theme.json. */

/* Persian pages: right-to-left + Arad FD (Persian digits) + taller lines, never all-caps */
.lap-rtl{direction:rtl;font-family:var(--wp--preset--font-family--arad-fd);line-height:1.8}
.lap-rtl :is(h1,h2,h3,h4){font-family:var(--wp--preset--font-family--arad-fd);letter-spacing:0;line-height:1.55;text-transform:none}

/* Motion: 200 ms, slow natural easing */
a,button,.wp-element-button,.wp-block-button__link{transition:color var(--wp--custom--motion--fast) ease,background-color var(--wp--custom--motion--fast) ease,border-color var(--wp--custom--motion--fast) ease,transform var(--wp--custom--motion--fast) var(--wp--custom--motion--ease),box-shadow var(--wp--custom--motion--fast) ease}

/* Button states: hover · focus · active · pressed */
.wp-element-button,.wp-block-button__link{min-height:var(--wp--custom--touch);display:inline-flex;align-items:center;justify-content:center;gap:10px}
.wp-element-button:hover,.wp-block-button__link:hover{transform:translateY(-1px)}
.wp-element-button:active,.wp-block-button__link:active{transform:translateY(1px) scale(.98)}
.is-style-outline .wp-block-button__link:hover{background:var(--wp--preset--color--tint)}

/* Accessibility: blue focus ring everywhere, keyboard only */
:focus{outline:none}
:focus-visible{outline:2px solid var(--wp--preset--color--lap-blue);outline-offset:3px;border-radius:4px}
::selection{background:var(--wp--preset--color--tint);color:var(--wp--preset--color--ink)}

/* Shared helpers for sections */
.lap-card{background:#fff;border-radius:var(--wp--custom--radius--card);box-shadow:var(--wp--preset--shadow--soft)}
.lap-tile{width:40px;height:40px;border-radius:10px;background:var(--wp--preset--color--tint);display:inline-flex;align-items:center;justify-content:center;color:var(--wp--preset--color--lap-blue)}
.lap-soft{color:var(--wp--preset--color--ink-soft)}
.lap-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

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

/* Persian type scale (v0.7.3): Arad FD reads larger than Arad, so Persian headings are one step smaller */
.lap-rtl .lap-hero h1,.lap-rtl.lap-hero h1,.lap-rtl .lap-newshead h1,.lap-rtl .lap-newshead__title,.lap-rtl .lap-contactpage h1{font-size:44px!important;line-height:1.6!important}
.lap-rtl .lap-article__title{font-size:34px!important;line-height:1.6!important}
.lap-rtl .lap-event__title{font-size:26px!important;line-height:1.7!important}
.lap-rtl .lap-trust .one{font-size:20px!important}
.lap-rtl h2,.lap-rtl .lap-cform h2,.lap-rtl .lap-cevents h2{font-size:clamp(20px,2.2vw,28px)}
@media (max-width:600px){.lap-rtl .lap-hero h1,.lap-rtl .lap-newshead h1,.lap-rtl .lap-contactpage h1{font-size:32px!important}}
