/**
 * Responsive rules for the DealZeno visual system.
 *
 * Breakpoint policy:
 * - Desktop base styles live in design-system.css, components.css, and page styles.
 * - Tablet layout adjustments: 1100px.
 * - Navigation-only collapse: 900px.
 * - Mobile component system: 780px.
 * - Narrow mobile action stacking: 480px.
 * - Small mobile refinements: 390px.
 */

/* Shared overflow and intrinsic sizing safeguards. */
.site,
.site-main,
.container,
.dzh-ticket-card,
.dzh-ticket-card__inner,
.dzh-ticket-card__content,
.dzh-ticket-card__topline,
.dzh-ticket-card__brand,
.dzh-ticket-card__labels,
.dzh-store-layout,
.dzh-store-main,
.dzh-store-hero__main,
.dzh-store-hero__content,
.dzh-store-hero__heading,
.dzh-store-card,
.dzh-store-card__link,
.dzh-store-card__body,
.coupon-filter-bar,
.coupon-filter-search,
.related-stores-section,
.store-directory-letters-shell,
.entry-content,
.dzh-rich-content {
  min-width: 0;
}

.site img,
.site video,
.site iframe,
.site embed,
.site object {
  max-width: 100%;
}

.breadcrumbs-wrapper,
.entry-content a,
.dzh-rich-content a,
.dzh-ticket-card__title,
.dzh-ticket-card__condition,
.dzh-store-card .store-title,
.dzh-store-hero h1 {
  overflow-wrap: anywhere;
}

.entry-content pre,
.dzh-rich-content pre {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Tablet */
@media (max-width: 1100px) {
  .site-header-inner { gap: 12px; }
  .site-branding-tagline { display: none; }
  .site-navigation a { padding-inline: 8px; }
  .dzh-region-switcher__prefix { display: none; }
  .dzh-region-switcher__copy { max-width: 118px; }

  .stores-grid,
  .dzh-store-grid,
  .dzh-directory-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .dzh-ticket-hero__grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    gap: 32px;
  }

  .dzh-store-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 20px;
  }

  .dzh-ticket-card__inner,
  .dzh-home-coupon-list .dzh-ticket-card__inner,
  .coupons-container .dzh-ticket-card__inner,
  body.single-coupon-store .dzh-ticket-card__inner {
    grid-template-columns: minmax(110px, 124px) minmax(0, 1fr) minmax(180px, 196px);
  }

  .dzh-ticket-card__action {
    min-width: 180px;
    padding-inline: 16px;
  }
}

/* Navigation collapse is isolated from content breakpoints. */
@media (max-width: 900px) {
  body.has-announcement-bar { --dzh-mobile-header-offset: 104px; }

  .site-navigation {
    position: fixed;
    z-index: 200;
    inset: var(--dzh-mobile-header-offset, 70px) 16px auto;
    display: none;
    max-height: calc(100dvh - var(--dzh-mobile-header-offset, 70px) - 22px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 12px;
    border: 1px solid var(--dzh-border);
    border-radius: var(--radius-card);
    background: #fff;
    box-shadow: var(--shadow-floating);
  }

  body.admin-bar .site-navigation {
    inset-block-start: calc(var(--dzh-mobile-header-offset, 70px) + var(--wp-admin--admin-bar--height, 32px));
    max-height: calc(100dvh - var(--dzh-mobile-header-offset, 70px) - var(--wp-admin--admin-bar--height, 32px) - 22px);
  }

  .site-navigation.active { display: block; }
  .site-navigation .nav-menu { display: grid; gap: 2px; }
  .site-navigation a { width: 100%; justify-content: space-between; }
  .site-navigation .sub-menu {
    position: static;
    display: block;
    min-width: 0;
    padding: 0 0 0 14px;
    border: 0;
    box-shadow: none;
  }

  .mobile-menu-toggle { display: inline-flex; }
  body.menu-open { overflow: hidden; }
  body.menu-open #main,
  body.menu-open .dzh-site-footer,
  body.menu-open .announcement-bar { pointer-events: none; }
  .dzh-region-switcher { flex: 0 0 44px; width: 44px; margin-left: auto; }
  .dzh-region-switcher__copy,
  .dzh-region-switcher__chevron { display: none; }
  .dzh-region-switcher summary {
    width: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
  }
  .dzh-region-switcher__flag {
    position: absolute;
    right: 3px;
    bottom: 3px;
    padding: 1px;
    border-radius: 50%;
    background: #fff;
    font-size: 12px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, .08);
  }
  .dzh-region-switcher__menu {
    position: fixed;
    top: calc(var(--dzh-mobile-header-offset, 70px) + var(--wp-admin--admin-bar--height, 0px) + 6px);
    right: 12px;
    left: auto;
    width: min(280px, calc(100vw - 24px));
    max-height: calc(100dvh - var(--dzh-mobile-header-offset, 70px) - var(--wp-admin--admin-bar--height, 0px) - 18px);
  }
  .header-search-shell { margin-left: 0; }

  .dzh-ticket-hero__grid { grid-template-columns: 1fr; }
  .dzh-savings-receipt { width: min(100%, 620px); }
  .dzh-latest-store-grid,
  .dzh-popular-store-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dzh-home-category-grid,
  .dzh-home-trust,
  .dzh-home-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .dzh-store-layout { grid-template-columns: 1fr; }
  .dzh-store-sidebar { grid-row: auto; }
  .related-stores-section .stores-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .dzh-footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .dzh-footer-widget-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dzh-footer-region {
    display: block;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .14);
  }
}

/* Mobile */
@media (max-width: 780px) {
  :root {
    --dzh-mobile-edge: 10px;
    --dzh-mobile-section-gap: 22px;
  }

  body.has-announcement-bar { --dzh-mobile-header-offset: 102px; }
  body { font-size: 15px; }

  .container { width: min(calc(100% - 16px), var(--container-width)); }
  .site-header,
  .site-header-inner { min-height: 64px; }
  .site-header-inner { align-items: center; flex-wrap: nowrap; gap: 6px; }
  .site-navigation { inset-block-start: var(--dzh-mobile-header-offset, 66px); }
  .site-branding { min-width: 0; margin-right: auto; }
  .site-branding-custom-logo img,
  .custom-logo { max-width: 122px; height: 38px; }
  .dzh-region-switcher { flex-basis: 42px; width: 42px; margin-left: 0; }
  .dzh-region-switcher summary { width: 42px; min-width: 42px; min-height: 42px; }
  .dzh-region-switcher__menu { top: calc(var(--dzh-mobile-header-offset, 66px) + var(--wp-admin--admin-bar--height, 0px) + 6px); }
  .site-branding-name { font-size: 16px; }
  .site-branding-text { display: none; }
  .mobile-menu-toggle__label { display: none; }

  .header-search-panel {
    position: fixed;
    top: calc(var(--dzh-mobile-header-offset, 66px) + var(--wp-admin--admin-bar--height, 0px) + 6px);
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }

  .single-post .comments-area { margin-top: 26px; padding-top: 22px; }
  .single-post .comment-body { padding: 13px; }
  .single-post .comment-author .avatar { width: 38px; height: 38px; }
  .single-post .comment-list .children { padding-inline-start: 10px; }
  .single-post .comment-respond { margin-top: 20px; padding: 15px; }
  .single-post .form-submit { justify-self: stretch; }
  .single-post .dzh-comment-submit,
  .single-post .comment-form .submit { width: 100%; min-height: 48px; }

  .announcement-bar__inner {
    min-height: 38px;
    padding-block: 7px;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
  }

  .site-branding--logo-only .site-branding-custom-logo img,
  .site-branding--logo-only .custom-logo {
    width: auto;
    height: auto;
    max-width: 122px;
    max-height: 38px;
  }

  .dzh-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
  }

  .breadcrumbs-wrapper {
    max-width: 100%;
    margin-block: 12px;
    font-size: 12px;
  }

  /* Homepage parity: keep the savings receipt, but compact it. */
  .dzh-ticket-hero { padding: 32px 0 34px; }
  .dzh-ticket-hero h1 { font-size: clamp(32px, 10vw, 44px); }
  .dzh-ticket-hero .dzh-search-combo,
  .dzh-search-combo {
    flex-direction: column;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .dzh-ticket-hero .hero-search-submit,
  .dzh-search-combo .btn { width: 100%; }
  .dzh-hero-quick-links { gap: 7px 10px; }
  .dzh-savings-receipt {
    display: block;
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    box-shadow: none;
  }
  .dzh-savings-receipt dl > div {
    gap: 10px;
    padding: 9px 0;
  }
  .dzh-home-flow { gap: 0; padding-top: 18px; }
  .dzh-home-trust { grid-template-columns: 1fr; gap: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
  .dzh-home-trust > div { padding: 13px 2px; border-bottom: 1px solid var(--dzh-border); }
  .dzh-home-trust > div:last-child { border-bottom: 0; }
  .dzh-home-guide-grid { grid-template-columns: 1fr; gap: 12px; }
  .dzh-home-guide-grid article { border-radius: 14px; box-shadow: none; }
  .dzh-latest-store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dzh-popular-store-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; }
  .dzh-popular-store-list a { min-height: 40px; font-size: 13px; }
  .dzh-home-brand-card { min-height: 132px; padding: 12px 10px; border-radius: 14px; box-shadow: none; }
  .dzh-home-brand-card__logo { height: 70px; }
  .dzh-home-brand-card__logo img { max-height: 62px; }
  .dzh-home-brand-card__logo > span { width: 56px; height: 56px; border-radius: 15px; }
  .dzh-home-category-grid { grid-template-columns: 1fr; gap: 10px; }
  .dzh-home-category-card { min-height: 82px; padding: 14px; border-radius: 14px; box-shadow: none; }

  /* Coupon and deal cards: stable savings/content row plus full-width action row. */
  .dzh-ticket-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 18px;
  }
  .dzh-ticket-card::before,
  .dzh-ticket-card::after { display: none; }

  .dzh-ticket-card__inner,
  .dzh-home-coupon-list .dzh-ticket-card__inner,
  .coupons-container .dzh-ticket-card__inner,
  body.single-coupon-store .dzh-ticket-card__inner {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 0;
    width: 100%;
    min-width: 0;
    min-height: 0;
    align-items: stretch;
  }

  .dzh-ticket-card__saving,
  .coupons-container .dzh-ticket-card__saving,
  body.single-coupon-store .dzh-ticket-card__saving {
    grid-column: 1;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 10px 6px;
    border-right: 1px dashed var(--dzh-border-strong);
    border-bottom: 0;
    border-radius: 0;
    text-align: center;
  }
  .dzh-ticket-card__saving strong {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.08;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
  }
  .dzh-ticket-card__saving span {
    margin-top: 5px;
    font-size: 10px;
    letter-spacing: .05em;
  }

  .dzh-ticket-card__content,
  .coupons-container .dzh-ticket-card__content,
  body.single-coupon-store .dzh-ticket-card__content {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    padding: 11px 12px 10px;
  }

  .dzh-ticket-card__topline {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    margin-bottom: 7px;
  }
  .dzh-ticket-card__brand { gap: 7px; max-width: 100%; }
  .dzh-ticket-card__brand-logo,
  .dzh-ticket-card__brand-logo img { width: 24px; height: 24px; }
  .dzh-ticket-card__brand-logo { flex-basis: 24px; }
  .dzh-ticket-card__store-link {
    min-width: 0;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .dzh-ticket-card__labels {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px;
    min-height: 0;
    max-width: 100%;
    margin: 0;
    overflow: visible;
  }
  .dzh-ticket-card__label {
    flex: 0 0 auto;
    max-width: 100%;
    min-height: 22px;
    padding: 4px 7px;
    font-size: 10px;
    line-height: 1.15;
    white-space: nowrap;
  }
  .dzh-ticket-card__label--type { display: none; }

  .dzh-ticket-card__title {
    margin-top: 0;
    font-size: 17px;
    line-height: 1.3;
  }
  .dzh-ticket-card__title-button {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  /* Preserve desktop information in compact mobile form. */
  .dzh-ticket-card__condition {
    display: -webkit-box;
    margin-top: 6px;
    color: #475467;
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .dzh-ticket-card__meta {
    display: flex;
    gap: 3px 11px;
    margin-top: 7px;
    font-size: 10px;
    line-height: 1.35;
  }
  .dzh-ticket-card__meta span + span::before { left: -7px; }
  .dzh-ticket-details {
    display: block;
    margin-top: 6px;
    font-size: 11px;
  }
  .dzh-ticket-details summary { min-height: 32px; padding-block: 6px; }
  .dzh-ticket-details p { margin-top: 4px; padding: 8px 9px; }

  .dzh-ticket-card__action,
  .coupons-container .dzh-ticket-card__action,
  body.single-coupon-store .dzh-ticket-card__action {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    padding: 10px;
    border-top: 1px dashed var(--dzh-border-strong);
    border-left: 0;
  }
  .dzh-ticket-card__action .btn,
  .coupons-container .dzh-ticket-card__action .btn,
  body.single-coupon-store .dzh-ticket-card__action .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    overflow: hidden;
    border-radius: 13px;
    font-size: 15px;
  }
  .dzh-ticket-card__action .copy-coupon-btn {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .dzh-ticket-card__action .dzh-ticket-card__cta-text {
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dzh-ticket-card__action .dzh-ticket-card__cta-code {
    display: inline-flex;
    min-width: 48px;
    max-width: 66px;
    padding: 10px 9px;
    overflow: hidden;
    font-size: 13px;
    text-overflow: clip;
    white-space: nowrap;
  }

  /* Store cards and related-store parity. */
  .stores-grid,
  .dzh-store-grid,
  .dzh-directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }
  .dzh-store-card__link { gap: 10px; padding: 12px; }
  .dzh-store-card__logo { width: 64px; height: 64px; margin-bottom: 0; }
  .dzh-store-card__logo img { width: 58px; height: 58px; padding: 7px; object-fit: contain; }
  .dzh-store-card .store-title { min-height: 2.5em; font-size: 14px; }
  .dzh-store-card__meta { min-height: 0; font-size: 11px; line-height: 1.35; }
  .dzh-store-card__cta { min-height: 34px; padding-top: 10px; font-size: 12px; }

  .related-stores-section .stores-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 10px;
  }
  .related-stores-section .dzh-store-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--dzh-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
  }
  .related-stores-section .dzh-store-card__link {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-areas:
      "logo body"
      "logo cta";
    align-items: center;
    width: 100%;
    min-height: 64px;
    gap: 2px 10px;
    padding: 8px 10px;
    text-align: left;
  }
  .related-stores-section .dzh-store-card__logo {
    grid-area: logo;
    display: grid;
    width: 44px;
    height: 44px;
    margin: 0;
    border-radius: 10px;
  }
  .related-stores-section .dzh-store-card__logo img { width: 42px; height: 42px; padding: 5px; }
  .related-stores-section .dzh-store-card__body {
    grid-area: body;
    display: grid;
    justify-items: start;
    min-width: 0;
    text-align: left;
  }
  .related-stores-section .dzh-store-card .store-title {
    min-height: 0;
    max-width: 100%;
    font-size: 14px;
    line-height: 1.25;
    text-align: left;
  }
  .related-stores-section .dzh-store-card__meta {
    display: grid;
    justify-items: start;
    min-height: 0;
    max-width: 100%;
    margin-top: 3px;
    font-size: 10px;
    text-align: left;
  }
  .related-stores-section .dzh-store-card__meta span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .related-stores-section .dzh-store-card__cta {
    grid-area: cta;
    display: flex;
    justify-content: flex-start;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 2px 0 0;
    border: 0;
    font-size: 11px;
    text-align: left;
  }
  .related-stores-section .dzh-store-card__cta > span:last-child {
    width: 18px;
    height: 18px;
  }

  /* Store hero: logo and heading share the first row; all other content spans. */
  .dzh-store-hero { margin-bottom: 18px; border-radius: var(--radius-card); }
  .dzh-store-hero__banner { aspect-ratio: 3.2 / 1; max-height: 132px; }
  .dzh-store-hero__main {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: start;
    padding: 14px;
  }
  .dzh-store-hero__logo {
    grid-column: 1;
    grid-row: 1;
    width: 76px;
    height: 76px;
    border-radius: 14px;
  }
  .dzh-store-hero__logo img {
    width: 100%;
    height: 100%;
    padding: 7px;
    object-fit: contain;
  }
  .dzh-store-hero .logo-placeholder--large { font-size: 26px; }
  .dzh-store-hero__content { display: contents; }
  .dzh-store-hero__heading {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
  }
  .dzh-store-hero__heading .dzh-eyebrow { margin-bottom: 3px; }
  .dzh-store-hero h1 {
    margin: 0;
    font-size: clamp(21px, 6vw, 25px);
    line-height: 1.15;
  }
  .dzh-store-hero__context {
    gap: 3px 10px;
    margin-top: 5px;
    font-size: 11px;
    line-height: 1.35;
  }
  .dzh-store-hero__description,
  .dzh-store-hero__facts,
  .dzh-store-hero__trust,
  .dzh-store-hero__actions {
    grid-column: 1 / -1;
    min-width: 0;
  }
  .dzh-store-hero__description {
    max-width: none;
    margin: 2px 0 0;
    font-size: 14px;
    line-height: 1.55;
  }
  .dzh-store-hero__facts {
    gap: 5px 12px;
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.4;
  }
  .dzh-store-hero__trust {
    grid-column: 1 / -1;
    width: 100%;
    max-width: none;
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.5;
  }
  .dzh-store-hero__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 3px;
  }
  .dzh-store-hero__actions a,
  .dzh-store-hero__actions button,
  .dzh-store-hero__actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding-inline: 10px;
    white-space: normal;
    text-align: center;
  }

  .dzh-store-offers,
  .dzh-editorial-content,
  .related-stores-section { padding: 14px; border-radius: var(--radius-card); }
  .store-note-card,
  .saving-guide-card,
  .store-full-content,
  .store-faq-section { padding: 14px; }
  .dzh-editorial-content > h2,
  .dzh-editorial-content .entry-content,
  .store-full-content .entry-content { max-width: none; }

  /* Coupon filters use the viewport, not an unclear horizontal scroller. */
  .coupon-filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: 0;
  }
  .coupon-filter-search {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    flex-basis: auto;
  }
  .coupon-filter-input,
  .coupon-filter-chip {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }
  .coupon-filter-chip {
    justify-content: center;
    padding-inline: 8px;
    border-radius: 12px;
    white-space: normal;
    text-align: center;
  }

  /* Directory navigation and cards. */
  .dzh-directory-hero { padding: 26px var(--dzh-mobile-edge) 22px; border-radius: 0; box-shadow: none; text-align: left; }
  .dzh-directory-hero > p:not(.dzh-eyebrow) { margin-inline: 0; }
  .dzh-directory-search-form { max-width: none; }
  .dzh-directory-popular { justify-content: flex-start; }
  .dzh-directory-controls {
    width: 100%;
    margin: 0;
    padding: 18px var(--dzh-mobile-edge);
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .dzh-directory-controls__heading { align-items: flex-start; }
  .store-directory-letters-shell { max-width: 100%; }
  .store-directory-letters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: 100%;
    padding: 4px 1px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-padding-inline: 1px;
  }
  .store-directory-letters .store-letter-chip:last-child { margin-inline-end: 4px; }
  .dzh-directory-regions > div {
    position: fixed;
    z-index: 400;
    top: 50%;
    left: 16px;
    right: 16px;
    width: auto;
    max-height: 60dvh;
    overflow: auto;
    transform: translateY(-50%);
  }

  /* Coupon modal. */
  .dzh-coupon-modal { padding: 10px; align-items: end; }
  .dzh-coupon-modal__dialog { width: 100%; max-height: calc(100dvh - 20px); padding: 20px 16px; border-radius: 20px 20px 14px 14px; }
  .dzh-coupon-modal__header { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding-right: 44px; }
  .dzh-coupon-modal__logo { width: 58px; height: 58px; }
  .dzh-coupon-modal__logo img { width: 52px; height: 52px; }
  .dzh-coupon-modal__header h2 { font-size: 20px; }
  .dzh-coupon-modal__deal-box { grid-template-columns: 1fr; padding: 14px; }
  .dzh-coupon-modal__code-row { flex-direction: column; }
  .dzh-coupon-modal__actions { display: grid; grid-template-columns: 1fr; }
  .dzh-coupon-modal__trust-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  /* Full-width mobile page shells while retaining component cards. */
  body.page-home,
  body.post-type-archive-coupon-store,
  body.blog,
  body.archive,
  body.search,
  body.single-post,
  body.page,
  body.error404,
  body.single-coupon-store { background: #fff; }

  .dzh-home-flow.container,
  .dzh-store-directory.container,
  .dzh-blog-index.container,
  .dzh-blog-archive.container,
  .dzh-taxonomy-page.container,
  .dzh-country-archive.container,
  .dzh-search-page.container,
  .dzh-article-page.container,
  .dzh-page-shell.container,
  .dzh-error-page.container,
  body.single-coupon-store .store-page-container.container {
    width: 100%;
    max-width: none;
    padding-inline: 0;
  }

  .dzh-store-directory > .breadcrumbs-wrapper,
  .dzh-blog-index > .breadcrumbs-wrapper,
  .dzh-blog-archive > .breadcrumbs-wrapper,
  .dzh-taxonomy-page > .breadcrumbs-wrapper,
  .dzh-search-page > .breadcrumbs-wrapper,
  .dzh-article-page > .breadcrumbs-wrapper,
  .dzh-page-shell > .breadcrumbs-wrapper,
  body.single-coupon-store .breadcrumbs-wrapper,
  body.single-coupon-store .affiliate-disclosure,
  body.single-coupon-store .dzh-store-hero { margin-inline: var(--dzh-mobile-edge); }

  .dzh-home-section {
    width: 100%;
    margin: 0;
    padding: 22px var(--dzh-mobile-edge);
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }
  .dzh-home-section + .dzh-home-section { border-top: 1px solid var(--dzh-border); }

  .dzh-store-directory { padding-bottom: 42px; }
  .dzh-directory-grid { padding: 18px var(--dzh-mobile-edge) 0; }
  .dzh-store-directory > .pagination { padding-inline: var(--dzh-mobile-edge); }

  .dzh-blog-index,
  .dzh-blog-archive,
  .dzh-taxonomy-page,
  .dzh-search-page,
  .dzh-country-archive,
  .dzh-article-page,
  .dzh-page-shell,
  .dzh-error-page { padding-block: 0 44px; }

  .dzh-blog-index .couponis-page-hero,
  .dzh-blog-archive .couponis-page-hero,
  .dzh-taxonomy-page .archive-header,
  .dzh-search-page .archive-header,
  .dzh-country-archive__hero {
    width: 100%;
    margin: 0;
    padding: 24px var(--dzh-mobile-edge);
    border: 0;
    border-radius: 0;
    background: #fff;
    background-image: none;
    box-shadow: none;
  }

  .blog-category-strip { padding-inline: var(--dzh-mobile-edge); }
  .blog-featured-card { margin: 0 var(--dzh-mobile-edge) 24px; padding: 12px; border-radius: 16px; box-shadow: none; }
  .dzh-blog-index .blog-layout,
  .dzh-blog-archive .blog-layout,
  .dzh-article-page .layout-sidebar,
  .dzh-taxonomy-page .layout-sidebar,
  .dzh-search-page .layout-sidebar { padding-inline: var(--dzh-mobile-edge); }
  .posts-grid--blog,
  .posts-grid--home { gap: 12px; }
  .post-card { border-radius: 14px; box-shadow: none; }

  .dzh-taxonomy-page .archive-toolbar { min-height: 0; margin: 0 0 12px; padding: 0; border: 0; border-radius: 0; background: transparent; }
  .dzh-category-landing-section,
  .dzh-country-archive__stores,
  .dzh-country-archive__categories,
  .dzh-country-archive__offers,
  .dzh-country-archive__related {
    width: 100%;
    margin: 0;
    padding: 22px var(--dzh-mobile-edge);
    border: 0;
    border-top: 1px solid var(--dzh-border);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .dzh-search-page .search-refine-card { width: auto; max-width: none; margin: 0 var(--dzh-mobile-edge) 18px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .dzh-search-page .search-input-wrapper { gap: 8px; }
  .dzh-search-page .search-input-wrapper .hero-search-field { border: 1px solid var(--dzh-border); border-radius: var(--radius-control); }
  .dzh-search-page .no-results--premium { padding: 28px 12px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }

  .blog-sidebar,
  .dzh-taxonomy-page .sidebar,
  .dzh-search-page .sidebar,
  .dzh-article-page .sidebar { margin-top: var(--dzh-mobile-section-gap); padding-top: 20px; border-top: 1px solid var(--dzh-border); }
  .blog-sidebar-card,
  .blog-sidebar .sidebar-widget,
  .dzh-taxonomy-page .sidebar-widget,
  .dzh-search-page .sidebar-widget,
  .dzh-article-page .sidebar-widget { margin-bottom: 22px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }

  .dzh-taxonomy-page .category-list,
  .dzh-search-page .category-list,
  .dzh-article-page .category-list,
  .dzh-related-categories .category-list { gap: 10px; }
  .dzh-taxonomy-page .category-list a,
  .dzh-search-page .category-list a,
  .dzh-article-page .category-list a,
  .dzh-related-categories .category-list a { min-height: 48px; padding: 10px 14px; border: 1px solid var(--dzh-border); border-radius: 999px; background: #f8fafc; }

  .dzh-article-page .single-post-wrapper {
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }
  .single-post .post-header { padding: 18px 0 16px; }
  .single-post .post-featured-image { margin: 0 0 22px; border-radius: 12px; }
  .single-post .entry-content { width: 100%; max-width: none; margin: 0; font-size: 16px; line-height: 1.72; }
  .single-post .entry-content img { width: 100%; height: auto; border-radius: 12px; }
  .single-post .post-tags,
  .single-post .post-share,
  .single-post .author-box,
  .single-post .related-posts { max-width: none; }
  .single-post .related-posts { margin-top: 28px; padding-top: 22px; }

  .dzh-page-card,
  .dzh-error-page .error-404 { width: 100%; max-width: none; margin: 0; padding: 22px var(--dzh-mobile-edge); border: 0; border-radius: 0; background: #fff; box-shadow: none; }
  .dzh-page-header { margin-bottom: 20px; padding-bottom: 16px; }
  .dzh-page-content { max-width: none; font-size: 16px; line-height: 1.72; }
  .dzh-page-content img { width: 100%; height: auto; border-radius: 12px; }
  .dzh-error-page .error-actions { display: grid; grid-template-columns: 1fr; }
  .dzh-error-page .error-search-form { max-width: none; }
  .dzh-error-page .error-popular-stores { margin-top: 32px; padding-top: 24px; }

  /* Single-store mobile surfaces. */
  body.single-coupon-store .dzh-store-layout,
  body.single-coupon-store .dzh-store-main { width: 100%; min-width: 0; }
  body.single-coupon-store .dzh-store-offers,
  body.single-coupon-store .dzh-editorial-content,
  body.single-coupon-store .store-full-content,
  body.single-coupon-store .related-stores-section,
  body.single-coupon-store .dzh-store-categories-section {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding: 16px var(--dzh-mobile-edge);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
  }
  body.single-coupon-store .dzh-store-offers { margin-top: 0; }
  body.single-coupon-store .dzh-editorial-content,
  body.single-coupon-store .store-full-content,
  body.single-coupon-store .related-stores-section,
  body.single-coupon-store .dzh-store-categories-section { margin-top: 18px; border-top: 1px solid var(--dzh-border); }
  body.single-coupon-store .dzh-editorial-content > h2,
  body.single-coupon-store .dzh-editorial-content .entry-content,
  body.single-coupon-store .store-full-content .entry-content { width: 100%; max-width: none; }
  body.single-coupon-store .dzh-store-sidebar { padding-inline: var(--dzh-mobile-edge); }
  body.single-coupon-store .dzh-store-glance,
  body.single-coupon-store .dzh-sidebar-widgets > * { border-radius: 14px; box-shadow: none; }
  body.single-coupon-store .dzh-store-main > .dzh-store-glance { width: 100%; max-width: none; margin: 18px 0 0; padding: 16px var(--dzh-mobile-edge); border: 0; border-top: 1px solid var(--dzh-border); border-radius: 0; }

  .dzh-store-categories-section { padding: 14px; }
  .dzh-store-pill-list { grid-template-columns: 1fr; gap: 12px; }
  .dzh-store-pill-link { min-height: 58px; font-size: 16px; }

  .store-full-content .entry-content img,
  .dzh-editorial-content .entry-content img { width: 100%; height: auto; border-radius: 14px; }

  .dzh-affiliate-disclosure { margin-top: 32px; padding: 16px var(--dzh-mobile-edge); }
  .dzh-affiliate-disclosure p { max-width: none; font-size: 12px; line-height: 1.6; text-align: center; }

  .dzh-site-footer { margin-top: 46px; padding-top: 40px; }
  .dzh-site-footer .container { width: 100%; padding-inline: var(--dzh-mobile-edge); }
  .dzh-footer-grid { gap: 28px; }
  .dzh-footer-social { margin-top: 24px; }
  .dzh-footer-widget-grid,
  .dzh-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dzh-footer-bottom { align-items: flex-start; flex-direction: column; margin-top: 28px; }

  .dzh-category-navigation .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dzh-article-toc ol { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
  .dzh-article-toc a,
  .dzh-article-related a { min-height: 44px; }
  .dzh-article-toc a { display: flex; align-items: center; padding: 8px 10px; border-left: 3px solid #dbe4ee; color: #334155; }
  .dzh-article-toc__level-3 a { padding-left: 24px; font-size: .94em; }
  .single-post .entry-content h2[id],
  .single-post .entry-content h3[id] { scroll-margin-top: 120px; }

  .header-search-icon-button,
  .mobile-menu-toggle,
  .dzh-coupon-modal__close,
  .social-btn,
  .faq-question { min-width: 44px; min-height: 44px; }
}

/* Narrow mobile: stack actions that no longer fit comfortably. */
@media (max-width: 480px) {
  .dzh-store-hero__actions { grid-template-columns: minmax(0, 1fr); }
  .dzh-footer-region-switcher__menu { grid-template-columns: 1fr; }
}

/* Small mobile */
@media (max-width: 390px) {
  .site-branding-custom-logo img,
  .custom-logo { max-width: 106px; }
  .dzh-region-switcher { flex-basis: 40px; width: 40px; }
  .dzh-region-switcher summary,
  .header-search-icon-button,
  .mobile-menu-toggle { min-width: 40px; width: 40px; padding-inline: 0; }
  .single-post .comment-list .children { padding-inline-start: 5px; }
  .single-post .comment-body { padding: 11px; }
  .single-post .comment-respond { padding: 12px; }
  :root { --dzh-mobile-edge: 8px; }
  .container { width: min(calc(100% - 12px), var(--container-width)); }

  .dzh-ticket-card__inner,
  .dzh-home-coupon-list .dzh-ticket-card__inner,
  .coupons-container .dzh-ticket-card__inner,
  body.single-coupon-store .dzh-ticket-card__inner {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .dzh-ticket-card__saving,
  .coupons-container .dzh-ticket-card__saving,
  body.single-coupon-store .dzh-ticket-card__saving { padding: 9px 5px; }
  .dzh-ticket-card__saving strong {
    font-size: clamp(13px, 3.8vw, 15px);
    line-height: 1.08;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
  }
  .dzh-ticket-card__saving span { font-size: 9px; }
  .dzh-ticket-card__content,
  .coupons-container .dzh-ticket-card__content,
  body.single-coupon-store .dzh-ticket-card__content { padding: 10px 9px 9px; }
  .dzh-ticket-card__title { font-size: 16px; }
  .dzh-ticket-card__brand-logo,
  .dzh-ticket-card__brand-logo img { width: 20px; height: 20px; }
  .dzh-ticket-card__brand-logo { flex-basis: 20px; }
  .dzh-ticket-card__store-link { font-size: 11px; }
  .dzh-ticket-card__labels {
    flex-wrap: nowrap;
    gap: 3px;
    overflow: hidden;
  }
  .dzh-ticket-card__label {
    min-height: 20px;
    padding: 3px 4px;
    font-size: 9px;
    letter-spacing: -.015em;
  }
  .dzh-ticket-card__label--recommended .dzh-ticket-card__label-full {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .dzh-ticket-card__label--recommended .dzh-ticket-card__label-compact { display: inline; }
  .dzh-ticket-card__label--verified .dzh-ticket-card__label-full {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .dzh-ticket-card__label--verified::before { margin-right: 0; }
  .dzh-ticket-card__action,
  .coupons-container .dzh-ticket-card__action,
  body.single-coupon-store .dzh-ticket-card__action { padding: 8px; }
  .dzh-ticket-card__action .dzh-ticket-card__cta-code {
    display: inline-flex;
    min-width: 42px;
    max-width: 52px;
    padding-inline: 7px;
  }

  .coupon-filter-bar { grid-template-columns: minmax(0, 1fr); }
  .coupon-filter-search { grid-column: 1; }

  .stores-grid,
  .dzh-store-grid,
  .dzh-directory-grid { grid-template-columns: minmax(0, 1fr); }
  .dzh-latest-store-grid,
  .dzh-popular-store-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .dzh-store-hero__banner { aspect-ratio: 3 / 1; max-height: 112px; }
  .dzh-store-hero__main { grid-template-columns: 68px minmax(0, 1fr); gap: 9px 10px; padding: 12px; }
  .dzh-store-hero__logo { width: 68px; height: 68px; }
  .dzh-store-hero h1 { font-size: clamp(20px, 6.5vw, 23px); }
  .dzh-store-hero__description { font-size: 13px; }

  .dzh-category-navigation .category-list { grid-template-columns: minmax(0, 1fr); }
  .dzh-footer-widget-grid,
  .dzh-footer-links { grid-template-columns: 1fr; gap: 24px; }
  .dzh-footer-social { align-items: flex-start; flex-direction: column; gap: 10px; }
}
