/* ==========================================================================
   Manipur Cooperative — Savings & Credit Society Ltd — responsive.css
   Mobile/tablet overrides only. Desktop-first: base styles live in
   style.css with no media queries; only max-width breakpoints here.
   Breakpoints: 1200 / 992 / 768 / 576.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Large tablet / small desktop — <= 1200px
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  :root {
    --fs-h1: 2.25rem;
    --fs-h2: 1.85rem;
  }

  .masthead__cta .btn-outline-primary {
    display: none;
  }

  .primary-nav a {
    padding: 0.55rem 0.55rem;
    font-size: 0.88rem;
  }

  .primary-nav li.has-children > a::after {
    margin-left: 0.25rem;
  }
}

/* --------------------------------------------------------------------------
   Tablet — <= 992px
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  :root {
    --fs-h2: 1.75rem;
    --fs-h3: 1.35rem;
  }

  .section {
    padding: 3.4rem 0;
  }

  /* Switch to hamburger + offcanvas nav */
  .primary-nav,
  .masthead__cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .masthead__row {
    justify-content: space-between;
  }

  /* Type scale down ~15% */
  h1 {
    font-size: var(--fs-h1);
  }

  h2 {
    font-size: var(--fs-h2);
  }

  .hero-swiper__content {
    padding: 4.5rem 0;
  }

  .hero-swiper__slide h1 {
    font-size: 2.35rem;
  }

  .hero-swiper__actions .btn-ghost {
    display: inline-flex;
  }

  .page-header {
    padding: 2.8rem 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .section-head__link {
    display: none;
  }

  .calc-result {
    position: static;
  }

  .band-cta__title {
    font-size: 1.5rem;
  }

  .band-cta .u-text-end {
    text-align: left;
  }

  .band-cta .btn {
    margin-top: 0.25rem;
  }
}

/* --------------------------------------------------------------------------
   Small tablet / large phone — <= 768px
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --fs-h1: 2rem;
    --fs-h2: 1.6rem;
  }

  .section {
    padding: 2.8rem 0;
  }

  .masthead__utility-row {
    justify-content: center;
    min-height: 2.3rem;
  }

  .masthead__utility-hide-sm {
    display: none;
  }

  .masthead__row {
    min-height: 64px;
  }

  .masthead__main {
    padding: 10px 0;
  }

  :root {
    --header-h: 84px;
  }

  .brand__mark {
    width: 56px;
    height: 56px;
  }

  .brand__title {
    font-size: 1.05rem;
  }

  .brand__sub {
    font-size: 0.68rem;
  }

  .hero-swiper__content {
    padding: 3.6rem 0;
  }

  .hero-swiper__slide h1 {
    font-size: 2rem;
  }

  .hero-swiper__nav {
    display: none;
  }

  .record-list__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .record-list__date {
    width: 64px;
  }

  .record-list__action .btn {
    width: 100%;
  }

  .report-row {
    flex-wrap: wrap;
  }

  .report-row__body {
    flex: 1 1 auto;
  }

  .footer-col {
    margin-bottom: 2rem;
  }

  .site-footer__top {
    padding: 3rem 0 1rem;
  }

  .download-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-card__action .btn {
    width: 100%;
  }

  .map-placeholder,
  .map-embed {
    height: 300px;
  }

  .form-card {
    padding: 1.4rem;
  }

  .stat {
    border-left: 0;
  }

  .image-frame-sm-1 {
    aspect-ratio: 1;
  }

  .g-5 {
    --bs-gutter-x: 1rem !important;
  }

  .post-navigation .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .post-navigation .nav-next {
    text-align: left;
    margin-left: 0;
  }

  .comment-list .children {
    padding-left: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Phone — <= 576px
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
  :root {
    --fs-h1: 1.8rem;
    --fs-h2: 1.45rem;
    --fs-h3: 1.2rem;
    --fs-body: 0.95rem;
  }

  .hero-swiper__actions {
    flex-direction: column;
  }

  .hero-swiper__actions .btn-primary,
  .hero-swiper__actions .btn-ghost {
    width: 100%;
  }

  .page-header {
    padding: 2.2rem 0;
  }

  .kv-list--auto {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.4rem;
  }

  .filter-btn {
    white-space: nowrap;
  }

  .band-cta {
    padding: 2.6rem 0;
  }

  .band-cta .u-text-end .btn {
    width: 100%;
  }

  .info-card {
    gap: 0.85rem;
    padding: 1.15rem;
    min-width: 0;
  }

  .info-card > div:not(.info-card__icon) {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .info-card__icon {
    width: 40px;
    height: 40px;
  }

  .stat__num {
    font-size: 1.9rem;
  }

  .calc-result__emi {
    font-size: 2.4rem;
  }

  .rate-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .rate-table td,
  .rate-table th {
    white-space: nowrap;
  }

  .footer-bottom__row {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom__legal {
    justify-content: center;
  }

  .timeline li {
    padding-left: 2.2rem;
  }

  .steps li {
    padding-left: 3.2rem;
  }

  .org-node {
    min-width: 140px;
    padding: 0.85rem 1.1rem;
  }

  .body-pad {
    padding-top: 0;
  }

  .site-main--basic,
  .widget-area {
    padding-inline: 0.85rem;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form .search-submit {
    width: 100%;
  }

  .comment-list .comment {
    gap: 0.75rem;
  }
}