/* Responsive and reduced-motion overrides for the Humans of Rashi page. */
@media (min-width: 1400px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1140px !important;
  }
}

@media (max-width: 991.98px) {
  .heading { font-size: 40px; }
  .site-nav .nav-actions { margin-right:-15px; }
  .story-submit-modal .modal-dialog { width:calc(100vw - 32px); max-width:640px; margin:16px auto; }
  .story-popup-content { height:auto; max-height:calc(100dvh - 32px); aspect-ratio:auto; grid-template-columns:1fr; grid-template-rows:130px auto; grid-template-areas:"image" "form"; }
  .story-popup-image-panel img { object-fit:cover; object-position:center 75%; }
  .story-popup-form-panel { padding:18px 24px; }
  .story-popup-form-panel > .heading { margin-bottom:10px; font-size:24px; }
  .story-popup-fields { row-gap:7px; }
  .story-popup-form label { margin-bottom:3px; font-size:12px; }
  .story-popup-form .form-control { min-height:40px; padding:8px 12px; font-size:13px; }
  .story-popup-form textarea.form-control { min-height:60px; }
  .story-popup-close { top:12px; right:12px; }
  .site-header { padding: 15px 0; }
  .site-nav { max-width: 100%; }
  .site-logo img { width: 118px; }
  .site-header .navbar-collapse { display: none !important; }
  .nav-actions { margin-left: auto; gap: 16px; }
  .hero-slide { min-height: 680px; }
  .campaign-hero { min-height: 700px; }
  .rashi-footer { padding-top: 55px; }
  .rashi-footer .footer-main { min-height: 0; }
  .rashi-footer .footer-brand-column { margin-bottom: 48px; }
  .rashi-footer .footer-newsletter-copy { margin-top: 25px; }
  .rashi-footer .footer-bottom { margin-top: 38px; }
}

@media (max-width: 575.98px) {
  .heading { font-size: 32px; }
  .hero-slide { min-height: min(760px, 100svh); background-position: 58% center; }
  .campaign-hero { min-height: 620px; background-position:58% center; }
  .hero-slide .hero-content { padding-top: 75px; }
  .hero-description { max-width: 420px; font-size: 15px; }
  .desktop-break { display: none; }
  .hero-actions { gap: 10px; }
  .default-btn,
  .hero-actions .hero-secondary { padding:11px 16px; font-size:14px; }
  .hero-slider .slick-dots { bottom: 18px; }
  .hero-slider .slick-dots li,
  .hero-slider .slick-dots button { width: 40px; }
  .hero-slider .slick-arrow { display: none !important; }
  .section-heading-row { align-items: flex-start; flex-direction: column; margin-bottom: 25px; }
  .stories-more { margin: 0; }
  .story-image { height: 220px; }
  .story-body h3,
  .story-body p { min-height: 0; }
  .story-body { padding: 19px 20px 21px; }
  .rashi-footer { padding-top: 45px; }
  .rashi-footer .footer-brand-column { margin-bottom: 38px; }
  .rashi-footer .footer-brand img { width: 150px; }
  .rashi-footer .footer-note { margin-bottom: 25px; font-size: 15px; }
  .rashi-footer .footer-heading { font-size: 17px; }
  .footer-company { gap: 12px; }
  .footer-company a { font-size: 14px; }
  .rashi-footer .footer-newsletter-copy { margin: 25px 0 16px; font-size: 14px; }
  .footer-language a { padding: 8px 9px; font-size: 11px; }
  .rashi-footer .footer-bottom { align-items: flex-start; gap: 18px; font-size: 12px; }
  .rashi-footer .footer-bottom div { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .wow.animated { animation: none !important; visibility: visible !important; }
  .story-card,
  .story-image,
  .story-category { transition: none; }
  .story-card:hover { transform: none; }
  .hero-actions .default-btn::before,
  .stories-more::before,
  .hero-actions .hero-secondary::before { transition: none; }
  .hero-slider .slick-dots .slick-active button::before { animation: none; transform: scaleX(1); }
}
@media (max-width: 575.98px) {
  .hero-slide { padding-bottom: 50px; }
  .hero-slider .slick-dots { bottom: 24px; }
}
@media (max-width: 991.98px) {
  .theme-card { min-height: 185px; }
  .visual-image { width:100%; height:205px; aspect-ratio:auto; }
  .visual-category { top:12px; left:12px; padding:7px 12px; font-size:11px; }
  .editorial-image { height: 180px; }
  .story-body p { font-size: 13px; }
  .story-listing-image { height: 185px; }
  .story-listing-copy h2 { font-size: 19px; }
  .contact-hero { min-height: 550px; }
  .contact-hero-content { padding-bottom: 42px; }
  .contact-hero-bottom > p { font-size: 17px; }
  .contact-intro { min-height:0; }
  .contact-details { margin-top:40px; padding-top:0; }
  .contact-form-card { padding:38px; }
  .story-detail-breadcrumb { margin-bottom:48px; }
  .story-detail-header { margin-bottom:28px; }
  .story-detail-hero-image { height:400px; }
  .story-detail-intro { margin-top:36px; }
  .story-share { margin-bottom:25px; }
  .story-video-placeholder img { height:380px; }
  .story-detail-gallery img { height:240px; margin-bottom:18px; }
}
@media (max-width: 575.98px) {
  .simple-page-shell { min-height:calc(100vh - 90px); }
  .simple-page-art { margin-bottom:30px; }
  .thank-you-content .thank-you-art { margin-bottom:20px; }
  .not-found-content > .row > .col-12 > p,.thank-you-content > .row > .col-12 > p { font-size:16px; }
  .story-submit-modal .modal-dialog { width:calc(100vw - 20px); margin:10px auto; }
  .story-popup-content { height:auto; max-height:calc(100dvh - 20px); aspect-ratio:auto; grid-template-rows:165px auto; }
  .story-popup-form-panel { padding:14px 18px; }
  .story-popup-form-panel > .heading { margin-bottom:8px; font-size:22px; }
  .story-popup-fields { row-gap:6px; }
  .story-popup-form label { margin-bottom:2px; font-size:11px; }
  .story-popup-form .form-control { min-height:37px; padding:7px 11px; font-size:12px; }
  .story-popup-form textarea.form-control { min-height:54px; }
  .story-popup-submit { min-height:40px; }
  .story-popup-close { width:36px; height:36px; font-size:27px; }
  .theme-card { min-height: 160px; padding: 12px; }
  .theme-card-title { font-size: 14px; }
  .visual-image { height: 210px; }
  .editorial-image { height: 210px; }
  .editorial-card-body h3,
  .editorial-card-body > p:not(.story-date) { min-height: 0; }
  .editorial-card-body > p:not(.story-date) { font-size: 12px; }
  .story-listing-heading { margin-bottom: 27px; }
  .story-listing-filters { margin-bottom:20px; }
  .story-search,.story-category-filter { margin-bottom:13px; }
  .story-listing-card { min-height:0; padding:9px; }
  .story-listing-image { height:210px; }
  .story-listing-card.no-gutters > .story-listing-copy { padding:18px 0px 15px; }
  .story-listing-category { top:12px; left:12px; }
  .story-listing-copy h2 { font-size:18px; }
  .story-listing-copy > p:not(.story-listing-date) { font-size:13px; }
  .campaign-hero-content { padding-top:75px; }
  .campaign-breadcrumb { margin-bottom:15px; font-size:13px; }
  .campaign-hero p { font-size:15px; }
  .campaign-card { padding:10px; }
  .campaign-card-image { aspect-ratio:1.7 / 1; }
  .campaign-card-body { padding:15px 4px 4px; }
  .campaign-brand-logo { height:28px; margin-bottom:12px; }
  .campaign-card h3 { font-size:18px; }
  .campaign-card p { min-height:0; font-size:13px; }
  .campaign-faq-intro { margin-bottom:25px; }
  .campaign-faq-toggle { min-height:54px; padding:14px 16px; font-size:15px; }
  .campaign-faq-answer { padding:0 16px 16px; font-size:13px; }
  .contact-hero { min-height:520px; background-position:58% center; }
  .contact-hero-content { padding-bottom:30px; }
  .contact-breadcrumb { margin-bottom:12px; font-size:14px; }
  .contact-hero-bottom { padding-bottom:22px; }
  .contact-hero-bottom > p { font-size:16px; }
  .contact-intro-copy { font-size:16px; }
  .contact-details { margin-top:30px; }
  .contact-details h3 { font-size:22px; }
  .contact-detail { gap:14px; padding:15px 0; }
  .contact-detail-icon { width:48px; height:48px; flex-basis:48px; font-size:19px; }
  .story-detail-breadcrumb { margin-bottom:34px; font-size:13px; }
  .story-detail-header { margin-bottom:22px; }
  .story-detail-date { font-size:14px; }
  .story-detail-hero-image { height:260px; border-radius:9px; }
  .story-detail-intro { margin-top:28px; }
  .story-share-links { gap:9px; }
  .story-share-link { width:40px; height:40px; }
  .story-prose { font-size:15px; }
  .story-prose-section h2 { margin-bottom:14px; }
  .story-video-placeholder { margin:5px 0 32px; }
  .story-video-placeholder img { height:250px; }
  .story-video-play { width:70px; height:50px; border-radius:12px; font-size:20px; }
  .story-quote { margin:26px 0 38px; padding:20px; }
  .story-detail-gallery { margin:15px -15px 30px; }
  .story-detail-gallery img { height:220px; }
  .related-stories-heading { margin-bottom:22px; }
  .contact-detail strong { font-size:15px; }
  .contact-form-card { padding:26px 20px; border-radius:18px; }
  .contact-form { gap:20px; }
  .contact-field-row { row-gap:20px; }
  .contact-field label { margin-bottom:8px; font-size:14px; }
  .contact-field input,.contact-field select,.contact-field textarea { min-height:52px; font-size:15px; }
  .contact-field textarea { min-height:125px; }
  .contact-response-note { font-size:13px; }
}
@media (max-height: 620px) {
  .story-popup-content { grid-template-rows:90px auto; }
  .story-popup-form-panel { padding:10px 18px; }
  .story-popup-form-panel > .heading { margin-bottom:5px; font-size:20px; }
  .story-popup-fields { row-gap:4px; }
  .story-popup-form label { margin-bottom:1px; font-size:10px; }
  .story-popup-form .form-control { min-height:34px; padding:5px 10px; font-size:12px; }
  .story-popup-form textarea.form-control { min-height:42px; }
  .story-popup-submit { min-height:36px; }
}
@media (max-height: 500px) {
  .story-popup-content { grid-template-rows:0 auto; }
  .story-popup-image-panel { display:none; }
}
@media (max-width: 991.98px) {
  .menu-drawer { width: min(490px, 68vw); min-width: 0; padding-right: 32px; padding-left: 32px; }
  .drawer-topbar { height: 68px; flex-basis: 68px; }
}
@media (max-width: 575.98px) {
  .menu-drawer { width: 100%; padding: 0 24px; }
  .drawer-topbar { height: 72px; flex-basis: 72px; }
  .drawer-content { padding-top: 0; padding-bottom: 20px; }
}
@media (max-height: 700px) {
  .drawer-topbar { height: 54px; flex-basis: 54px; }
  .drawer-content { padding-bottom: 12px; }
  .drawer-group { margin-bottom: 10px; }
  .drawer-group-toggle,.drawer-single-link { font-size: 26px; }
  .drawer-group-panel { gap: 3px; padding-top: 5px; }
  .drawer-group-panel a { font-size: 16px; }
  .drawer-single-link { margin-bottom: 10px; }
  .drawer-story-prompt { padding-top: 10px; }
  .drawer-story-prompt h2 { font-size: 22px; }
  .drawer-story-prompt p { margin-bottom: 8px; font-size: 12px; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .stories-section,
  .themes-section,
  .visual-stories-section,
  .editorial-section,
  .share-story-section,
  .stories-listing-section,
  .story-detail-main,
  .story-prose-section,
  .related-stories-section,
  .contact-section,
  .legal-page-section { padding:60px 0 0; }
  .share-story-section { padding:60px 0; }
  .story-prose-section { margin:0; }
  .stories-listing-section { padding-bottom:60px; }
  .related-stories-section { padding-bottom:60px; }
  .contact-section,.legal-page-section { padding-bottom:60px; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .campaigns-section { padding:60px 0 0; }
  .campaign-faq-section { padding:60px 0; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .campaigns-section { padding:40px 0 0; }
  .campaign-faq-section { padding:40px 0; }
}

@media (max-width: 767.98px) {
  .campaigns-section { padding:50px 0 0; }
  .campaign-faq-section { padding:50px 0; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .stories-section,
  .themes-section,
  .visual-stories-section,
  .editorial-section,
  .share-story-section,
  .stories-listing-section,
  .story-detail-main,
  .story-prose-section,
  .related-stories-section,
  .contact-section,
  .legal-page-section { padding:40px 0 0; }
  .share-story-section { padding:40px 0; }
  .story-prose-section { margin:0; }
  .stories-listing-section { padding-bottom:40px; }
  .related-stories-section { padding-bottom:40px; }
  .contact-section,.legal-page-section { padding-bottom:40px; }
}

@media (max-width: 767.98px) {
  .stories-section .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .stories-section .stories-more {
    margin: 0;
  }
  .stories-section .stories-more-wrap,
  .visual-stories-section .stories-more-wrap,
  .editorial-section .stories-more-wrap {
    justify-content: flex-start;
    margin-top: 12px;
  }
  .editorial-section .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .editorial-section .stories-more {
    margin: 0;
  }
  .visual-stories-section .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .stories-section,
  .themes-section,
  .visual-stories-section,
  .editorial-section,
  .share-story-section,
  .stories-listing-section,
  .story-detail-main,
  .story-prose-section,
  .related-stories-section,
  .contact-section,
  .legal-page-section { padding:50px 0 0; }
  .share-story-section { padding:50px 0; }
  .story-prose-section { margin:0; }
  .stories-listing-section { padding-bottom:50px; }
  .related-stories-section { padding-bottom:50px; }
  .contact-section,.legal-page-section { padding-bottom:50px; }
}
