h1,h2,h3{text-wrap:balance}img{max-width:100%}
.rasa-drawer,.taj-drawer{height:100dvh;overflow-y:auto}
/* Explicit grids keep action groups together instead of leaving a final button alone. */
main .yr-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%;max-width:480px;gap:12px!important;align-items:stretch}
main .yr-actions-3{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:680px}
main .yr-actions-4{grid-template-columns:repeat(4,minmax(0,1fr))!important;max-width:850px}
main .yr-actions>a{min-width:0!important;min-height:48px;display:flex!important;align-items:center;justify-content:center;text-align:center;text-wrap:balance;white-space:normal!important;padding:14px 16px!important;gap:8px!important;line-height:1.35!important}
main .yr-actions>a svg{flex-shrink:0}
main div[style*="flex:1"]{min-width:0}
footer .yr-family-links{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;width:100%;max-width:800px;gap:8px 16px!important;align-items:center}
footer .yr-family-links>a{display:flex;align-items:center;justify-content:center;min-height:44px;text-align:center;line-height:1.45;white-space:nowrap}
/* The placeholder occupies the final image dimensions before the request completes. */
img[data-reserved-media]{background:linear-gradient(110deg,transparent 25%,#ffffff1c 45%,transparent 65%),var(--rasa-panel,var(--taj-teal-dark,#e9e1d2));background-size:220% 100%;animation:yr-media-loading 1.8s ease-in-out infinite}
img[data-reserved-media][data-loaded]{background:none;animation:none}
@keyframes yr-media-loading{from{background-position:180% 0}to{background-position:-40% 0}}
@media(max-width:899px){main .yr-actions-4{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:560px}}
@media(max-width:760px){footer .yr-family-links{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:480px;gap:4px 12px!important}}
@media(max-width:560px){
 main .yr-actions{gap:8px!important}
 main .yr-actions>a{padding:13px 9px!important;font-size:12px!important;letter-spacing:.02em!important}
 main .yr-actions-3>a{flex-direction:column;gap:7px!important;padding:12px 5px!important}
 main .yr-actions>a svg{width:16px;height:16px}
 footer .yr-family-links{font-size:12px!important}
 footer .yr-family-links>a{white-space:normal;text-wrap:balance;padding:5px 3px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
footer .yr-footer-title{font-size:16px!important;font-weight:600!important;line-height:1.3!important;letter-spacing:0!important;text-transform:none!important}
footer .yr-family-title{font-size:15px!important;line-height:1.5!important;letter-spacing:0!important;text-transform:none!important;margin:0 0 8px!important}
footer .yr-family-links{align-items:stretch!important}
footer a{overflow-wrap:anywhere}
/* Family footers share a compact two-column phone layout. */
@media(max-width:600px){
 .rasa-footer-grid,.cc-footer-grid,.ss-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:28px 20px!important}
 .rasa-footer-grid>* ,.cc-footer-grid>* ,.ss-footer-grid>*{min-width:0}
}
.cc-drawer,.ss-drawer{height:100dvh;overflow-y:auto}

main .yr-actions[style*="justify-content:center"]{margin-inline:auto}
footer a[href^="mailto:"]{font-size:12px!important;overflow-wrap:normal;word-break:normal}

/* Upright editorial type; semantic emphasis keeps its meaning without cursive styling. */
em, cite, blockquote { font-style: normal; }

/* The full-screen menus lock page scrolling. Where scrollbars take up space, as
   in a desktop browser set to always show them, keep the gutter so the header
   and its close button stay put, and paint it in the open menu's colour. Phones
   overlay their scrollbars, so nothing changes there. */
html{scrollbar-gutter:stable}
html:has(body.taj-drawer-lock){background:#F4EBD9}
html:has(body.rasa-drawer-lock){background:#FBF1DD}
html:has(body.ss-drawer-lock){background:#0F0C07}
html:has(body.cc-drawer-lock){background:#223F46}
