/* Presentation layer for the home page. Existing dialogs retain their styles. */
body.mahta-home {
    --home-bg: #fbfbfc; --home-panel: #fff; --home-soft: #f6f7f9;
    --home-ink: #282b33; --home-muted: #6c717d; --home-border: #e7e8ed;
    --home-red: #dc3545; --home-red-hover: #bd2637; --home-tint: #fff1f2;
    --home-shadow: 0 8px 40px rgba(28,32,42,.045);
    padding-top: 0; background: var(--home-bg) !important; color: var(--home-ink) !important;
    font-family: Shabnam, Vazirmatn, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
}
.mahta-home.dark-theme {
    --home-bg: #23272f; --home-panel: #2b2f36; --home-soft: #252931;
    --home-ink: #f1f2f4; --home-muted: #b4b8c2; --home-border: #41454e;
    --home-red: #f17882; --home-red-hover: #e15f6c; --home-tint: #3c2b33;
    --home-shadow: 0 8px 40px rgba(0,0,0,.1);
}
.mahta-home .home-shell { width: 100%; max-width: 1440px; padding: 22px 36px 0; }
.mahta-home .home-shell > section { margin: 0 0 76px !important; scroll-margin-top: 28px; }
.mahta-home .home-shell h1, .mahta-home .home-shell h2, .mahta-home .home-shell h3, .mahta-home .home-shell h4 { color: var(--home-ink); }
.mahta-home .home-shell a { text-decoration: none; }
.home-skip-link { position: absolute; top: 0; transform: translateY(-150%); background: var(--home-panel); padding: .75rem 1rem; z-index: 10; }
.home-skip-link:focus { transform: none; }
.mahta-home .home-header { border: 1px solid var(--home-border); border-radius: 22px; background: var(--home-panel); box-shadow: var(--home-shadow); }
.home-header-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 20px 24px; }
.home-brand { display: flex; align-items: center; gap: 1.3rem; color: var(--home-ink); }
.home-brand img { width: 168px; height: 40px; object-fit: contain; }
.home-brand-divider { height: 35px; width: 1px; background: var(--home-border); }
.home-brand-name { font-size: 1.55rem; line-height: 1.4; font-weight: 900; }
.home-brand-name small { display: block; font-size: .8125rem; color: var(--home-muted); font-weight: 400; margin-top: .3rem; }
.home-header-account { display: flex; gap: 1rem; align-items: center; }
.home-product-label { display: inline-flex; gap: .4rem; align-items: center; font-size: .875rem; color: var(--home-muted); margin-inline-end: .4rem; }
.home-product-label i { color: var(--home-red); }
.mahta-home .home-header .theme-toggle { position: static; }
.mahta-home .home-header .theme-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--home-border); background: var(--home-soft) !important; color: var(--home-ink) !important; box-shadow: none; }
.home-account { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--home-ink); }
.home-account > i { font-size: 1.35rem; color: var(--home-muted); }
.home-login { display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--home-ink); border: 1px solid var(--home-border); border-radius: 12px; padding: .6rem .9rem; white-space: nowrap; }
.home-login:hover { color: var(--home-red); border-color: var(--home-red); }
.home-actionbar { border-top: 1px solid var(--home-border); padding: 12px 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem; }
.home-main-actions, .home-admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.home-admin-actions { padding-inline-start: .8rem; border-inline-start: 1px solid var(--home-border); }
.home-admin-label { color: var(--home-muted); font-size: .8125rem; display: inline-flex; align-items: center; gap: .4rem; }
.home-actionbar .home-admin-label { padding-inline: .5rem; }
.mahta-home .home-actionbar .btn { display: inline-flex; align-items: center; gap: .45rem; font-size: .875rem; min-height: 42px; padding: .55rem .8rem; border: 1px solid transparent !important; border-radius: 11px; background: transparent !important; color: var(--home-muted) !important; font-weight: 600; letter-spacing: 0; white-space: nowrap; box-shadow: none; }
.mahta-home .home-actionbar .btn:hover { background: var(--home-soft) !important; color: var(--home-ink) !important; }
.mahta-home .home-actionbar #smartSearchOpenBtn { background: var(--home-tint) !important; color: var(--home-red) !important; border-color: transparent !important; }
.mahta-home .home-actionbar .home-logout { padding-inline: .7rem; color: var(--home-muted) !important; }
.mahta-home .home-actionbar .home-logout:hover { color: var(--home-red) !important; }
.mahta-home .home-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: center; min-height: 580px; padding: 35px 18px 20px; margin-bottom: 24px !important; }
.home-eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--home-red); font-weight: 600; font-size: .875rem; line-height: 1.9; }
.home-mini-mark { font-size: 1.2rem; }
.mahta-home .home-hero h1 { font-size: clamp(2.7rem, 4.4vw, 4.3rem); line-height: 1.6; letter-spacing: -2.2px; margin: 16px 0 18px; font-weight: 900; }
.home-hero h1 > span { color: var(--home-red); position: relative; white-space: nowrap; }
.home-hero h1 > span::after { content: ''; position: absolute; inset-inline: 0; height: 9px; bottom: 5px; border-radius: 8px; background: var(--home-red); opacity: .12; transform: rotate(-2deg); }
.home-hero-description { color: var(--home-muted); font-size: 1.0625rem; line-height: 2.2; margin: 0; max-width: 540px; }
.home-hero-actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 28px; }
.mahta-home .home-primary-cta { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; color: #fff !important; background: #dc3545 !important; border: 1px solid #dc3545 !important; font-size: 1rem; font-weight: 700; padding: 1rem 1.3rem; border-radius: 14px; box-shadow: 0 7px 20px #dc354522; transition: background .2s, transform .2s; }
.mahta-home .home-primary-cta:hover { background: #bd2637 !important; transform: translateY(-2px); }
.home-secondary-cta { display: inline-flex; align-items: center; gap: .6rem; font-size: .9375rem; color: var(--home-ink); font-weight: 600; }
.home-secondary-cta:hover { color: var(--home-red); }
.home-hero-benefits { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: .8125rem; color: var(--home-muted); margin-top: 25px; }
.home-hero-benefits span { display: flex; gap: .25rem; align-items: center; }
.home-hero-benefits i { color: var(--home-red); font-size: 1rem; }
.home-discovery { position: relative; width: 100%; aspect-ratio: 600 / 510; max-width: 620px; justify-self: center; isolation: isolate; color: var(--home-border); }
.discovery-halo { position: absolute; width: 75%; aspect-ratio: 1; inset: 10% 12%; border-radius: 50%; background: radial-gradient(circle, #dc354512 0, #dc354506 45%, transparent 72%); z-index: -1; }
.discovery-connections { position: absolute; inset: 0; width: 100%; height: 100%; }
.discovery-core { position: absolute; left: 37%; top: 36%; width: 26%; aspect-ratio: 1; background: var(--home-panel); border: 1px solid var(--home-border); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; color: var(--home-ink); box-shadow: 0 12px 60px #dc35451a, 0 0 0 13px #dc354505; }
.discovery-core-icon { color: var(--home-red); font-size: clamp(1.2rem, 2.1vw, 2rem); line-height: 1; }
.discovery-core strong { font-size: clamp(1.5rem, 2.5vw, 2.4rem); font-weight: 900; }
.discovery-core > span:last-child { font-size: .8125rem; color: var(--home-muted); }
.discovery-card { position: absolute; display: flex; align-items: center; gap: .65rem; padding: 1rem 1.1rem; border: 1px solid var(--home-border); border-radius: 17px; background: var(--home-panel); color: var(--home-ink); box-shadow: 0 10px 35px rgba(28,32,42,.055); }
.discovery-need { top: 6%; right: 0; width: 67%; transform: rotate(-2deg); }
.discovery-people { top: 35%; left: -1%; width: 39%; transform: rotate(2deg); }
.discovery-papers { bottom: 10%; right: 1%; width: 60%; transform: rotate(-2deg); }
.discovery-card-icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--home-tint); color: var(--home-red); font-size: 1.2rem; }
.discovery-card > div { min-width: 0; }
.discovery-card-label { display: block; font-size: .75rem; color: var(--home-muted); margin-bottom: .3rem; }
.discovery-card strong { display: block; font-size: .9375rem; line-height: 1.8; font-weight: 700; }
.discovery-example { font-size: .75rem; color: var(--home-muted); display: block; margin-top: .25rem; }
.discovery-need > div { flex: 1; }
.discovery-keyword-preview { display: flex; align-items: center; gap: .3rem; margin-top: .35rem; padding: .35rem .55rem; border: 1px solid var(--home-border); border-radius: 7px; background: var(--home-soft); color: var(--home-muted); font-size: .75rem; line-height: 1.5; }
.discovery-keyword-preview::after { content: ""; height: 1em; border-inline-start: 1.5px solid var(--home-red); }
.discovery-mini-people { display: flex; align-items: center; margin-top: .5rem; padding-inline-start: .3rem; }
.discovery-mini-people > i { display: grid; place-items: center; width: 26px; height: 26px; background: var(--home-soft); border: 2px solid var(--home-panel); border-radius: 50%; margin-inline-start: -.3rem; color: var(--home-muted); }
.discovery-mini-people > span { font-size: .75rem; color: var(--home-muted); margin-inline-start: .4rem; }
.discovery-caption { position: absolute; bottom: 0; width: 100%; text-align: center; color: var(--home-muted); font-size: .75rem; }
.mahta-home #statsSection { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); align-items: center; padding: 26px 20px; border: 1px solid var(--home-border); border-radius: 22px; background: var(--home-panel); box-shadow: var(--home-shadow); margin-bottom: 72px !important; }
.home-stats-caption { padding-inline: 12px 24px; }.home-stats-caption .home-eyebrow { font-size: .8125rem; }.home-stats-caption h2 { font-size: 1.15rem; line-height: 1.7; margin: .5rem 0; font-weight: 900; }.home-stats-caption > span:last-child { color: var(--home-muted); font-size: .75rem; }
.home-stat { text-align: center; border-inline-start: 1px solid var(--home-border); padding: .4rem 1rem; min-width: 0; }
.home-stat > i { display: block; font-size: 1.3rem; color: var(--home-muted); margin-bottom: .8rem; }
.home-stat > strong { display: block; font-size: clamp(1.6rem, 2.6vw, 2.4rem); line-height: 1.5; color: var(--home-ink); font-weight: 900; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.home-stat > span { display: block; color: var(--home-muted); font-size: .875rem; margin-top: .4rem; }
.home-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 28px; }
.mahta-home .home-section-heading h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.8; font-weight: 900; margin: .45rem 0 0; letter-spacing: -.7px; }
.home-section-heading > p, .home-section-note { color: var(--home-muted); font-size: .9375rem; line-height: 2; max-width: 350px; margin: 0 0 .4rem; }
.home-steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.home-steps-grid article { display: flex; gap: 1rem; align-items: flex-start; position: relative; }
.home-step-icon { flex-shrink: 0; display: grid; place-items: center; width: 50px; height: 54px; color: var(--home-red); background: var(--home-tint); border-radius: 15px; font-size: 1.4rem; }
.home-steps-grid h3 { font-size: 1.0625rem; font-weight: 800; margin: .1rem 0 .6rem; }
.home-steps-grid p { font-size: 1rem; color: var(--home-muted); line-height: 2; margin: 0; }
.mahta-home .home-directory #researchersCard { background: var(--home-panel) !important; border: 1px solid var(--home-border); border-radius: 20px; box-shadow: var(--home-shadow) !important; overflow: hidden; }
.mahta-home #researchersCard > .card-header { background: var(--home-panel) !important; color: var(--home-ink) !important; border-bottom: 1px solid var(--home-border); padding: 18px 22px; gap: 1rem; box-shadow: none; }
.mahta-home #researchersCard > .card-header .card-title { font-size: 1rem !important; color: var(--home-ink); }
.mahta-home #researchersCard .search-box { max-width: none; flex-wrap: wrap; }
.mahta-home #researchersCard #searchInput { width: 280px !important; max-width: 100%; background: var(--home-soft) !important; color: var(--home-ink) !important; border: 1px solid var(--home-border); font-size: .9375rem !important; padding: .7rem .8rem; }
.mahta-home #researchersCard .card-body { padding: 22px; }
.mahta-home #researchersCard .form-label { color: var(--home-muted); font-size: .875rem !important; margin-bottom: .6rem; }
.mahta-home #researchersCard .form-select { background-color: var(--home-soft); color: var(--home-ink); border: 1px solid var(--home-border); border-radius: 10px; font-size: .9375rem !important; padding-block: .7rem; }
.mahta-home #researchersCard .btn { background: var(--home-panel) !important; color: var(--home-ink) !important; border-color: var(--home-border) !important; border-radius: 10px; padding: .6rem .75rem; }
.mahta-home #researchersCard #searchButton { margin: 0 !important; color: var(--home-red) !important; background: var(--home-tint) !important; }
.mahta-home #researchersCard .table { border-color: var(--home-border); border-radius: 12px; margin-bottom: 0; }
.mahta-home #researchersCard .table th, .mahta-home #researchersCard .table td { border-color: var(--home-border); color: var(--home-ink) !important; font-size: .875rem !important; padding: 1rem .65rem; line-height: 1.9; }
.mahta-home #researchersCard .table th { background: var(--home-soft) !important; font-weight: 700; white-space: nowrap; }
.mahta-home #researchersCard .table td { background: var(--home-panel) !important; }
.mahta-home #researchersCard .table td .profile-link { color: var(--home-ink); font-size: .9375rem; }
.mahta-home #researchersCard .table tr:hover td { background: var(--home-soft) !important; }
.mahta-home #researchersCard > .card-footer { background: var(--home-panel); border-top: 1px solid var(--home-border); padding: 15px 22px; }
.mahta-home #researchersCard .text-muted, .mahta-home #researchersCard #paginationInfo, .mahta-home #researchersCard #paginationInfoBottom { color: var(--home-muted) !important; }
.mahta-home #researchersCard .page-link { color: var(--home-ink); background: var(--home-panel); border-color: var(--home-border); padding: .5rem .8rem; }
.mahta-home #researchersCard .page-item.active .page-link { background: var(--home-tint); color: var(--home-red); border-color: var(--home-border); }
.mahta-home #audienceSection { background: transparent !important; border: 0; box-shadow: none; padding: 0; }
.home-audience-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.mahta-home #audienceSection .audience-card { opacity: 1 !important; transform: none !important; position: relative; padding: 26px 22px; border-radius: 20px; background: var(--home-panel) !important; border: 1px solid var(--home-border); box-shadow: var(--home-shadow); transition: border-color .2s, translate .2s; overflow: visible; }
.mahta-home #audienceSection .audience-card::before, .mahta-home #audienceSection .audience-card::after { display: none; }
.mahta-home #audienceSection .audience-card:hover { border-color: var(--home-red); translate: 0 -4px; }
.home-audience-icon { display: grid; place-items: center; width: 49px; height: 49px; border: 1px solid var(--home-border); border-radius: 14px; font-size: 1.45rem; color: var(--home-red); background: var(--home-soft); margin-bottom: 25px; }
.home-audience-grid h3 { font-size: 1.0625rem; font-weight: 800; line-height: 1.9; margin-bottom: 12px; }
.home-audience-grid p { color: var(--home-muted); font-size: 1rem; line-height: 2; margin-bottom: 25px; }
.home-audience-tag { display: inline-block; font-size: .8125rem; color: var(--home-muted); border-top: 1px solid var(--home-border); padding-top: 12px; width: 100%; }
.mahta-home #heroCarousel { margin: 0 !important; border: 1px solid var(--home-border); border-radius: 22px; overflow: hidden; }
.mahta-home #heroCarousel .carousel-inner { height: 235px !important; border-radius: 0 !important; }
.mahta-home #heroCarousel .carousel-item { height: 100%; }
.mahta-home #heroCarousel .carousel-item > div { padding-inline: 85px !important; }
.mahta-home #heroCarousel h2 { font-size: 1.7rem !important; line-height: 1.8; }
.mahta-home #heroCarousel p { font-size: 1rem; line-height: 2 !important; margin-top: .8rem !important; margin-bottom: 0; max-width: 780px !important; }
.mahta-home #heroCarousel .carousel-control-prev, .mahta-home #heroCarousel .carousel-control-next { width: 65px; }
.mahta-home #heroCarousel .carousel-control-prev-icon, .mahta-home #heroCarousel .carousel-control-next-icon { filter: brightness(.3); width: 22px; height: 22px; }
.mahta-home.dark-theme #heroCarousel .carousel-item { background: var(--home-panel) !important; }
.mahta-home.dark-theme #heroCarousel h2, .mahta-home.dark-theme #heroCarousel p { color: var(--home-ink) !important; }
.mahta-home.dark-theme #heroCarousel .carousel-control-prev-icon, .mahta-home.dark-theme #heroCarousel .carousel-control-next-icon { filter: none; }
.mahta-home #topSection { background: transparent !important; border: 0 !important; box-shadow: none; padding: 0; }
.mahta-home #topSection .card { background: var(--home-panel) !important; border: 1px solid var(--home-border); border-radius: 16px !important; box-shadow: var(--home-shadow); overflow: hidden; }
.mahta-home #topSection .card-header { background: var(--home-panel) !important; border-bottom: 1px solid var(--home-border); padding: 20px; box-shadow: none; }
.mahta-home #topSection .card-title { color: var(--home-ink); font-size: 1rem; }
.mahta-home #topSection .table { margin: 0; border: 0; background: var(--home-panel); border-radius: 0; }
.mahta-home #topSection .table th, .mahta-home #topSection .table td { background: var(--home-panel) !important; color: var(--home-ink) !important; border-color: var(--home-border); padding: .9rem .75rem; font-size: .875rem; }
.mahta-home #topSection .table th { background: var(--home-soft) !important; }
.mahta-home .home-admin-insights { border-top: 1px solid var(--home-border); padding-top: 35px; }
.mahta-home .home-admin-insights #viewStatsSection, .mahta-home .home-admin-insights #apiUsageStatsSection { background: var(--home-panel) !important; border: 1px solid var(--home-border) !important; padding: 26px !important; border-radius: 20px !important; color: var(--home-ink); box-shadow: var(--home-shadow) !important; }
.mahta-home .home-admin-insights h3 { font-size: 1.2rem; }
.mahta-home .home-admin-insights .impact-item { border-color: var(--home-border); background: var(--home-panel); }
.mahta-home .home-admin-insights .impact-heading h2 { font-size: 1.7rem; }
.mahta-home #siteFooter { padding: 0 !important; text-align: start !important; border: 0 !important; border-radius: 0 !important; background: var(--home-bg) !important; color: var(--home-ink) !important; box-shadow: none !important; }
.home-footer-inner { max-width: 1440px; margin: auto; padding: 0 36px 28px; }
.home-footer-panel { position: relative; overflow: hidden; border: 1px solid var(--home-border); border-radius: 28px; background: radial-gradient(ellipse at 100% 0, var(--home-tint), transparent 55%), var(--home-panel); }
.home-footer-panel::before { content: ''; position: absolute; top: 0; inset-inline-start: 40px; width: 64px; height: 3px; border-radius: 0 0 4px 4px; background: var(--home-red); }
.home-footer-main { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 48px; padding: 38px 40px 30px; }
.mahta-home .home-footer a { color: var(--home-ink); text-decoration: none; }
.home-footer-wordmark { display: inline-flex; align-items: center; gap: 14px; }
.home-footer-mark { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid var(--home-border); border-radius: 18px; color: var(--home-red); background: var(--home-panel); font-size: 1.7rem; transform: rotate(-6deg); }
.home-footer-wordmark strong { display: block; font-size: 2rem; font-weight: 900; line-height: 1.5; }
.home-footer-wordmark small { display: block; color: var(--home-muted); font-size: .75rem; line-height: 1.8; }
.home-footer-brand p { margin: 18px 0 0; color: var(--home-muted); font-size: .875rem; line-height: 2; }
.home-footer-links { display: grid; gap: 10px; }
.home-footer-links a { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; padding: 14px 18px; border: 1px solid var(--home-border); border-radius: 14px; background: var(--home-panel); transition: border-color .2s, background .2s; }
.home-footer-links strong { display: block; font-size: .875rem; font-weight: 700; line-height: 1.8; }
.home-footer-links small { display: block; margin-top: 3px; color: var(--home-muted); font-size: .75rem; line-height: 1.8; }
.home-footer-links i { color: var(--home-muted); transition: color .2s, transform .2s; }
.home-footer-links a:hover { border-color: var(--home-red); background: var(--home-tint); }
.home-footer-links a:hover i { color: var(--home-red); transform: translate(-2px, -2px); }
.home-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-inline: 40px; padding-block: 18px; border-top: 1px solid var(--home-border); }
.home-footer-bottom p { margin: 0; color: var(--home-muted); font-size: .75rem; line-height: 1.9; }
.home-footer-top { display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; white-space: nowrap; }
.home-footer-top > span { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--home-border); border-radius: 50%; background: var(--home-panel); transition: border-color .2s, color .2s; }
.home-footer-top:hover > span { color: var(--home-red); border-color: var(--home-red); }
.home-shell a:focus-visible, .home-shell button:focus-visible, .home-shell input:focus-visible, .home-shell select:focus-visible, .home-footer a:focus-visible { outline: 3px solid var(--home-red); outline-offset: 4px; }
@media (min-width: 1100px) and (max-width: 1399px) { .home-admin-actions { border: 0; padding-inline-start: 0; }.home-actionbar { gap: .8rem; }.home-actionbar .home-admin-actions .btn { padding-inline: .6rem; } }
@media (max-width: 1100px) {
    .mahta-home .home-shell { padding-inline: 24px; }.home-admin-actions { border: 0; padding-inline-start: 0; width: 100%; padding-top: .6rem; border-top: 1px solid var(--home-border); }
    .home-product-label { display: none; }.mahta-home .home-hero { min-height: 510px; padding-inline: 0; gap: 20px; }.mahta-home .home-hero h1 { font-size: 3rem; }.home-hero-benefits { gap: .8rem; }.home-hero-actions { gap: 1rem; }.mahta-home .home-primary-cta { padding-inline: 1rem; font-size: .9375rem; }
    .home-discovery { max-width: 490px; }.discovery-card { padding: .8rem; gap: .5rem; }.discovery-card-icon { width: 33px; height: 33px; font-size: 1rem; }.discovery-card strong { font-size: .875rem; }.discovery-example { font-size: .75rem; }.discovery-people { width: 39%; left: -2%; }.discovery-mini-people > span { display: none; }
    .home-audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.home-steps-grid { gap: 22px; }.home-steps-grid article { gap: .7rem; }.home-step-icon { width: 42px; height: 46px; }.home-stats-caption { padding-inline-end: 12px; }
}
@media (max-width: 800px) {
    .mahta-home .home-shell { padding: 14px 18px 0; }.home-header-top { padding: 16px; gap: .7rem; }.home-brand { gap: .8rem; }.home-brand img { width: 125px; height: 32px; }.home-brand-name { font-size: 1.35rem; }.home-brand-name small { max-width: 145px; line-height: 1.8; font-size: .75rem; }.home-brand-divider { height: 40px; }.home-header-account { gap: .6rem; }.home-account > span { display: none; }.home-actionbar { padding: 10px 12px; }.mahta-home .home-actionbar .btn { font-size: .8125rem; padding-inline: .65rem; }.home-admin-actions { gap: .25rem; }
    .mahta-home .home-hero { grid-template-columns: 1fr; gap: 10px; padding: 42px 12px 12px; }.home-hero-copy { text-align: center; }.mahta-home .home-hero h1 { font-size: clamp(2.5rem, 7vw, 3.4rem); }.home-hero-description { margin: auto; }.home-hero-actions { justify-content: center; }.home-hero-benefits { justify-content: center; }.home-discovery { width: 100%; max-width: 570px; margin-top: 5px; }.discovery-card strong { font-size: .9375rem; }.discovery-people { width: 39%; left: 0; }.discovery-core-icon { font-size: 1.7rem; }.discovery-core strong { font-size: 2rem; }
    .mahta-home #statsSection { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 22px 10px; }.home-stats-caption { grid-column: 1 / -1; text-align: center; margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--home-border); }.home-stats-caption h2 br { display: none; }.home-stats-caption h2 { display: inline; margin-inline: .6rem; font-size: 1.1rem; }.home-stats-caption > span:last-child { display: none; }.home-stat { padding-inline: .5rem; }.home-stat:nth-child(2) { border-inline-start: 0; }.home-stat > strong { font-size: 1.8rem; }.home-stat > span { font-size: .8125rem; }
    .home-section-heading { align-items: flex-start; flex-direction: column; gap: .6rem; }.home-section-heading > p, .home-section-note { max-width: none; }.mahta-home .home-shell > section { margin-bottom: 55px !important; }.mahta-home .home-hero { margin-bottom: 22px !important; }.home-steps-grid { grid-template-columns: 1fr; gap: 22px; }.home-step-icon { width: 47px; height: 49px; }.home-steps-grid h3 { font-size: 1.0625rem; }.home-steps-grid article:not(:last-child) { padding-bottom: 20px; border-bottom: 1px solid var(--home-border); }
    .mahta-home #researchersCard > .card-header { padding: 16px; }.mahta-home #researchersCard .search-box { width: 100%; }.mahta-home #researchersCard #searchInput { flex: 1; width: 0 !important; min-width: 120px; }.mahta-home #researchersCard .card-body { padding: 16px; }.mahta-home #researchersCard .card-body > .row { row-gap: 1rem; }.mahta-home #researchersCard > .card-footer > div { flex-wrap: wrap; gap: 1rem; }
    .mahta-home #heroCarousel .carousel-inner { height: 240px !important; }.mahta-home #heroCarousel .carousel-item > div { padding-inline: 50px !important; }.mahta-home #heroCarousel h2 { font-size: 1.4rem !important; }.mahta-home #heroCarousel .carousel-control-prev, .mahta-home #heroCarousel .carousel-control-next { width: 40px; }.home-footer-inner { padding-inline: 18px; }.home-footer-main { gap: 28px; padding: 30px 26px 26px; }.home-footer-bottom { margin-inline: 26px; }
}
@media (max-width: 600px) {
    .home-header .home-brand-name small { display: none; }
    .home-actionbar { flex-direction: column; align-items: stretch; }
    .home-main-actions, .home-admin-actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
    .mahta-home .home-actionbar .btn { width: 100%; min-height: 44px; justify-content: center; text-align: center; }
    .home-footer-inner { padding: 0 12px max(16px, env(safe-area-inset-bottom)); }
    .home-footer-panel { border-radius: 22px; }
    .home-footer-panel::before { inset-inline-start: calc(50% - 24px); width: 48px; }
    .home-footer-main { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 24px 16px 18px; }
    .home-footer-brand { text-align: center; }
    .home-footer-wordmark { gap: 10px; max-width: 100%; text-align: start; }
    .home-footer-wordmark > span:last-child { min-width: 0; }
    .home-footer-mark { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; font-size: 1.35rem; }
    .home-footer-wordmark strong { font-size: 1.75rem; }
    .home-footer-wordmark small { font-size: .75rem; }
    .home-footer-brand p { max-width: 32ch; margin: 12px auto 0; font-size: .8125rem; line-height: 1.9; text-wrap: pretty; }
    .home-footer-brand p br { display: none; }
    .home-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .home-footer-links a { min-width: 0; min-height: 52px; gap: 6px; padding: 10px; border-radius: 12px; }
    .home-footer-links strong { font-size: .8125rem; }
    .home-footer-links small { display: none; }
    .home-footer-links i { flex-shrink: 0; font-size: .75rem; }
    .home-footer-bottom { flex-direction: column-reverse; gap: 12px; margin-inline: 16px; padding-block: 14px 18px; text-align: center; }
    .home-footer-bottom p { max-width: 34ch; line-height: 1.9; text-wrap: pretty; }
    .home-footer-top { align-self: stretch; justify-content: center; min-height: 44px; margin: 0; border-radius: 12px; background: var(--home-soft); font-size: .8125rem; }
    .home-footer-top > span { width: 24px; height: 24px; border: 0; background: transparent; color: var(--home-red); }
}
@media (max-width: 500px) {
    .mahta-home .home-shell { padding: 12px 12px 0; }.home-header-top { flex-wrap: wrap; padding: 14px; }.home-brand { flex: 1; min-width: 0; }.home-brand img { width: 112px; }.home-brand-name { font-size: 1.25rem; }.home-brand-name small { font-size: .75rem; max-width: 115px; }.home-header-account { gap: .4rem; }.mahta-home .home-header .theme-btn { width: 35px; height: 35px; border-radius: 10px; }.home-login { font-size: .8125rem; padding: .45rem .6rem; }.home-login > i { display: none; }.home-header-account:has(.home-login) { width: 100%; justify-content: flex-end; }.home-main-actions { gap: .25rem; }.mahta-home .home-actionbar .btn { padding: .5rem .6rem; font-size: .875rem; }.home-admin-actions { gap: .4rem; }.home-admin-actions .home-admin-label { width: 100%; }.mahta-home .home-actionbar .home-admin-actions .btn { font-size: .8125rem; }
    .mahta-home .home-hero { padding: 32px 0 0; }.home-hero-copy > .home-eyebrow { font-size: .8125rem; }.mahta-home .home-hero h1 { font-size: 2.5rem; letter-spacing: -1.7px; margin-top: 12px; }.home-hero-description { font-size: 1rem; line-height: 2.1; }.home-hero-description br { display: none; }.home-hero-actions { gap: 1.1rem; flex-direction: column; margin-top: 22px; }.mahta-home .home-primary-cta { width: 100%; padding-block: .9rem; }.home-secondary-cta { font-size: .9375rem; }.home-hero-benefits { gap: .6rem 1rem; font-size: .75rem; margin-top: 20px; }
    .home-discovery { margin-top: 20px; aspect-ratio: 1 / 1; }.discovery-connections { top: 6%; height: 88%; }.discovery-core { top: 39%; left: 37%; width: 27%; }.discovery-core strong { font-size: 1.7rem; }.discovery-core > span:last-child { font-size: .6875rem; }.discovery-core-icon { font-size: 1.2rem; }.discovery-card { padding: .7rem .6rem; border-radius: 13px; gap: .4rem; }.discovery-card-icon { width: 28px; height: 30px; border-radius: 8px; font-size: .875rem; }.discovery-card strong { font-size: .8125rem; }.discovery-card-label, .discovery-example { font-size: .6875rem; }.discovery-need { top: 5%; width: 83%; }.discovery-people { top: 38%; width: 38%; left: 0; }.discovery-people .discovery-card-icon { display: none; }.discovery-papers { width: 74%; bottom: 11%; right: 0; }.discovery-mini-people { display: none; }.discovery-caption { font-size: .6875rem; }
    .mahta-home #statsSection { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 20px 15px; border-radius: 18px; gap: 20px 0; }.home-stats-caption { margin-bottom: 0; padding: 0 0 15px; }.home-stats-caption h2 { display: block; margin: .5rem 0 0; }.home-stat { padding-block: .3rem; }.home-stat > i { margin-bottom: .3rem; }.home-stat > strong { font-size: 1.9rem; }.home-stat:nth-child(4) { border-inline-start: 0; }.home-stat:nth-child(4), .home-stat:nth-child(5) { border-top: 1px solid var(--home-border); padding-top: 20px; }.home-stat > span { font-size: .875rem; }
    .home-audience-grid { grid-template-columns: 1fr; gap: 14px; }.mahta-home #audienceSection .audience-card { padding: 22px; }.home-audience-icon { margin-bottom: 16px; }.home-audience-grid p { margin-bottom: 18px; }.home-section-heading { margin-bottom: 22px; }.home-section-heading > div > .home-eyebrow { font-size: .8125rem; }.mahta-home .home-section-heading h2 { font-size: 1.5rem; }.home-section-heading > p { font-size: .9375rem; }
    .mahta-home #researchersCard .card-body { padding-inline: 10px; }.mahta-home #researchersCard > .card-header { padding: 14px; }.mahta-home #researchersCard .card-footer { padding-inline: 14px; }.mahta-home #researchersCard .page-link { padding: .4rem .6rem; }.mahta-home #heroCarousel .carousel-inner { height: 280px !important; }.mahta-home #heroCarousel .carousel-item > div { padding-inline: 35px !important; }.mahta-home #heroCarousel h2 { font-size: 1.2rem !important; }.mahta-home #heroCarousel p { font-size: .9375rem; }.mahta-home #heroCarousel .carousel-control-prev, .mahta-home #heroCarousel .carousel-control-next { width: 28px; }.mahta-home .home-admin-insights #viewStatsSection, .mahta-home .home-admin-insights #apiUsageStatsSection { padding: 16px !important; }.home-admin-insights .d-flex.justify-content-between { flex-wrap: wrap; gap: .8rem; }.home-admin-insights .btn-group .btn { font-size: .8125rem; }
}
@media (prefers-reduced-motion: reduce) {
    .mahta-home .home-shell *, .mahta-home .home-shell *::before, .mahta-home .home-shell *::after, .home-footer *, .home-footer *::before, .home-footer *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
