/* ==============================================================
   TEKY / Weideng v8 — three-device responsive system
   Desktop >= 1181px: preserve the approved desktop design.
   Tablet 783–1180px: 90% content width, compact header, 2-col grids.
   Mobile <= 782px: 94% content width, mobile navigation, 2-col products.
   ============================================================== */

/* Avoid accidental horizontal scrolling caused by Gutenberg full-width blocks. */
html, body { max-width: 100%; overflow-x: clip; }
img, video, iframe { max-width: 100%; }

/* --------------------------------------------------------------
   TABLET — 783px to 1180px
-------------------------------------------------------------- */
@media (min-width: 783px) and (max-width: 1180px) {
  :root { --teky-tablet-width: 90%; }

  .page-width,
  .teky-section.page-width,
  .teky-about-feature.page-width,
  .teky-home-news.page-width,
  .teky-advantages > .page-width,
  .product-detail-intro .product-intro-inner,
  .product-editor-content.page-width,
  .related-products.page-width,
  .about-story-block.page-width,
  .teky-stats.page-width,
  .company-image-block.page-width,
  .values-grid-block.page-width,
  .insights-index.page-width,
  .contact-page-layout.page-width,
  .article-detail.page-width,
  .article-cover-content.page-width,
  .wp-block-cover.inner-banner .inner-banner-content.page-width,
  .wp-block-columns.catalog-layout.classic-catalog.page-width {
    width: var(--teky-tablet-width) !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Header: same visual language, less horizontal pressure. */
  .site-header,
  .site-header.wp-block-group { height: 88px !important; }
  .site-header .header-inner,
  .site-header.is-scrolled .header-inner {
    width: 92% !important;
    max-width: 1120px !important;
    height: 84px !important;
    margin-top: 0 !important;
    padding: 0 24px !important;
    gap: 18px !important;
    border-radius: 0 0 28px 28px !important;
  }
  .site-header.is-scrolled .header-inner { margin-top: 7px !important; height: 76px !important; }
  .site-header .wp-block-navigation { font-size: 16px !important; }
  .site-header .wp-block-navigation__container { gap: 22px !important; }
  .site-header .wordmark { font-size: 33px !important; }
  .site-header .header-actions { gap: 18px !important; }
  .site-header .header-blog { display: none !important; }
  .site-header .wp-block-button.pill-button .wp-block-button__link {
    min-height: 42px !important;
    padding: 0 13px 0 18px !important;
    gap: 10px !important;
    font-size: 15px !important;
  }
  .site-header .pill-dot { width: 16px !important; height: 16px !important; }
  .site-header .language-switcher summary { font-size: 14px !important; }

  /* Home hero */
  .teky-home-hero.alignfull {
    height: 780px !important;
    min-height: 720px !important;
    padding: 120px 5vw 70px !important;
  }
  .teky-home-hero > .hero-copy {
    width: min(64vw, 660px) !important;
    max-width: 660px !important;
  }
  .teky-home-hero .hero-copy h1,
  .teky-home-hero .hero-copy .wp-block-heading {
    font-size: clamp(62px, 8.2vw, 92px) !important;
    line-height: .86 !important;
  }
  .teky-home-hero .hero-copy > p:not(.hero-kicker) {
    max-width: 520px !important;
    font-size: 16px !important;
  }
  .teky-home-hero .hero-frame img { object-position: 60% center !important; }

  /* Home sections */
  .teky-section { padding-block: 90px !important; }
  .teky-section-heading { margin-bottom: 42px !important; }
  .teky-section-heading h2,
  .teky-about-copy h2 { font-size: clamp(42px, 6vw, 62px) !important; }

  .teky-category-row {
    min-height: 142px !important;
    padding: 18px 0 !important;
    grid-template-columns: 42px 96px minmax(150px,.8fr) minmax(0,1.2fr) 46px !important;
    gap: 18px !important;
  }
  .teky-category-row .wp-block-image { width: 92px !important; height: 92px !important; }
  .teky-category-row .wp-block-image img { width: 76px !important; height: 76px !important; }
  .teky-category-row h3 { font-size: 24px !important; }
  .teky-category-row p:not(.category-number) { font-size: 14px !important; line-height: 1.55 !important; }
  .teky-category-row .round-arrow { width: 44px !important; height: 44px !important; }

  .teky-about-feature {
    padding-bottom: 95px !important;
    grid-template-columns: 1fr !important;
    gap: 42px !important;
  }
  .teky-about-feature .wp-block-image,
  .teky-about-feature .wp-block-image img {
    width: 100% !important;
    height: 500px !important;
    min-height: 500px !important;
  }
  .teky-about-copy > p { max-width: 760px !important; }

  .teky-section > .wp-block-query.featured-grid > .wp-block-post-template,
  .related-products .wp-block-query.featured-grid > .wp-block-post-template,
  .wp-block-query.catalog-grid > .wp-block-post-template,
  .teky-ajax-post-template {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 20px !important;
  }

  .teky-advantages { padding: 105px 0 100px !important; }
  .teky-advantages .teky-advantage-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 16px !important;
  }
  .teky-advantages .teky-advantage-card {
    min-height: 190px !important;
    padding: 28px !important;
    grid-template-columns: 72px minmax(0,1fr) !important;
    gap: 20px !important;
  }
  .teky-advantages .teky-advantage-card .hex-icon { width: 66px !important; height: 75px !important; }
  .teky-advantages .teky-advantage-card h3 { font-size: 21px !important; }

  .teky-home-news { padding-block: 95px !important; }
  .teky-home-news .wp-block-post-template {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 20px !important;
  }

  /* Inner banners */
  .wp-block-cover.inner-banner,
  .wp-block-cover.inner-banner-blog,
  .wp-block-cover.inner-banner-contact {
    height: 600px !important;
    min-height: 600px !important;
  }
  .wp-block-cover.inner-banner .inner-banner-content {
    padding-top: 118px !important;
    padding-bottom: 58px !important;
  }
  .wp-block-cover.inner-banner h1 { font-size: clamp(54px,7vw,76px) !important; }
  .wp-block-cover.inner-banner p:not(.eyebrow) { font-size: 16px !important; }

  /* Products archive: keep a useful left rail on tablet, 2-col products. */
  .wp-block-columns.catalog-layout.classic-catalog {
    width: 90% !important;
    padding: 70px 0 100px !important;
    grid-template-columns: 205px minmax(0,1fr) !important;
    gap: 24px !important;
    align-items: start !important;
  }
  .catalog-layout.classic-catalog > .catalog-sidebar.wp-block-column,
  .catalog-sidebar.wp-block-column.teky-sticky-ready {
    width: 205px !important;
    min-width: 0 !important;
    align-self: start !important;
  }
  .catalog-sidebar .catalog-sidebar-sticky-inner {
    width: 100% !important;
    border-radius: 12px !important;
  }
  .catalog-sidebar .sidebar-heading { font-size: 18px !important; }
  .catalog-sidebar .product-category-list a { font-size: 13px !important; }
  .catalog-query-title { font-size: 34px !important; }

  /* Product detail */
  .product-detail-intro { padding: 122px 0 48px !important; }
  .product-detail-intro h1 { font-size: clamp(52px,7vw,70px) !important; }
  .product-editor-content.page-width { padding: 62px 0 90px !important; }
  .teky-product-summary {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .teky-product-gallery .wp-block-image:first-child { min-height: 500px !important; }
  .teky-product-gallery .wp-block-image { min-height: 180px !important; }
  .teky-product-facts { position: static !important; padding: 34px !important; }
  .teky-tab-panel > .wp-block-columns { gap: 12px !important; }

  /* About */
  .about-story-block {
    padding-block: 90px 60px !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .teky-stats { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
  .teky-stat { padding: 24px !important; border-bottom: 1px solid var(--line); }
  .company-image-block {
    min-height: 0 !important;
    margin-block: 90px !important;
    grid-template-columns: 1fr !important;
  }
  .company-image-block .wp-block-image { height: 480px !important; }
  .company-image-block > .wp-block-group { padding: 44px !important; }
  .values-grid-block { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }

  /* Blog */
  .insights-index { padding-block: 82px !important; }
  .insights-index .insights-index-row {
    grid-template-columns: 190px minmax(0,1fr) !important;
    gap: 22px !important;
  }
  .insights-index .insights-thumb { height: 150px !important; }

  /* Contact */
  .contact-page-layout {
    padding-block: 85px !important;
    grid-template-columns: .9fr 1.1fr !important;
    gap: 36px !important;
  }
  .teky-contact-form { padding: 34px !important; }

  .contact-strip.wp-block-group { width: 90% !important; }
  .site-footer .footer-top { gap: 45px !important; }
}

/* --------------------------------------------------------------
   MOBILE — <= 782px
-------------------------------------------------------------- */
@media (max-width: 782px) {
  :root { --teky-mobile-width: 94%; --teky-mobile-header: 72px; }

  body { font-size: 15px; }
  p { line-height: 1.62; }
  .page-width,
  .teky-section.page-width,
  .teky-about-feature.page-width,
  .teky-home-news.page-width,
  .teky-advantages > .page-width,
  .product-detail-intro .product-intro-inner,
  .product-editor-content.page-width,
  .related-products.page-width,
  .about-story-block.page-width,
  .teky-stats.page-width,
  .company-image-block.page-width,
  .values-grid-block.page-width,
  .insights-index.page-width,
  .contact-page-layout.page-width,
  .article-detail.page-width,
  .article-cover-content.page-width,
  .wp-block-cover.inner-banner .inner-banner-content.page-width,
  .wp-block-columns.catalog-layout.classic-catalog.page-width {
    width: var(--teky-mobile-width) !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Mobile header — burger + centered logo + compact contact/language. */
  .site-header,
  .site-header.wp-block-group { height: 76px !important; }
  .site-header .header-inner,
  .site-header.is-scrolled .header-inner {
    width: calc(100% - 12px) !important;
    height: var(--teky-mobile-header) !important;
    margin-top: 0 !important;
    padding: 0 12px !important;
    display: grid !important;
    grid-template-columns: 44px 1fr auto !important;
    align-items: center !important;
    gap: 8px !important;
    border-radius: 0 0 20px 20px !important;
  }
  .site-header.is-scrolled .header-inner { margin-top: 5px !important; height: 66px !important; }

  .site-header .main-nav {
    width: 44px !important;
    min-width: 44px !important;
    justify-self: start !important;
  }
  .site-header .wordmark {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    margin: 0 !important;
    font-size: 27px !important;
    transform: translate(-50%,-50%) skewX(-8deg) !important;
    z-index: 3 !important;
  }
  .site-header .header-actions {
    grid-column: 3 !important;
    justify-self: end !important;
    margin-left: 0 !important;
    gap: 8px !important;
  }
  .site-header .header-actions .header-blog { display: none !important; }
  .site-header .header-actions .wp-block-buttons,
  .site-header .language-switcher { display: flex !important; }
  .site-header .wp-block-button.pill-button .wp-block-button__link {
    min-height: 36px !important;
    padding: 0 10px 0 12px !important;
    gap: 7px !important;
    font-size: 12px !important;
    border-width: 1px !important;
  }
  .site-header .pill-dot { width: 11px !important; height: 11px !important; }
  .site-header .language-switcher summary { font-size: 11px !important; }
  .site-header .language-switcher summary:after { margin-left: 3px !important; }
  .site-header .language-switcher > p {
    top: 30px !important;
    min-width: 112px !important;
    padding: 10px 12px !important;
    font-size: 12px !important;
  }

  /* Force the core Navigation block into mobile overlay mode. */
  .site-header .main-nav > .wp-block-navigation__container { display: none !important; }
  .site-header .wp-block-navigation__responsive-container-open {
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    color: #fff !important;
  }
  .site-header.is-scrolled .wp-block-navigation__responsive-container-open { color: #050708 !important; }
  .site-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .site-header .wp-block-navigation__responsive-container.is-menu-open {
    z-index: 9999 !important;
    padding: 92px 20px 34px !important;
    display: flex !important;
    background: #050708 !important;
    color: #fff !important;
  }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    width: 100% !important;
  }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    font-size: 26px !important;
  }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
    width: 100% !important;
  }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    width: 100% !important;
    padding: 11px 0 !important;
    color: #fff !important;
  }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .has-child .wp-block-navigation__submenu-container {
    width: 100% !important;
    min-width: 0 !important;
    margin: 4px 0 10px !important;
    padding: 8px !important;
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 6px !important;
    background: #0e1517 !important;
    border-radius: 12px !important;
  }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }
  .site-header .wp-block-navigation__responsive-container.is-menu-open .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    padding: 10px !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
  }
  .site-header .wp-block-navigation__responsive-container-close {
    top: 18px !important;
    right: 18px !important;
    color: #fff !important;
  }

  /* Home hero */
  .teky-home-hero.alignfull {
    height: auto !important;
    min-height: 720px !important;
    padding: 112px 5vw 58px !important;
    align-items: flex-end !important;
  }
  .teky-home-hero:before {
    background: linear-gradient(180deg,rgba(2,7,9,.38) 0%,rgba(2,7,9,.62) 45%,rgba(2,7,9,.94) 100%) !important;
  }
  .teky-home-hero > .hero-copy {
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 0 !important;
  }
  .teky-home-hero .hero-kicker { margin-bottom: 14px !important; font-size: 10px !important; }
  .teky-home-hero .hero-copy h1,
  .teky-home-hero .hero-copy .wp-block-heading {
    margin-bottom: 20px !important;
    font-size: clamp(46px, 14vw, 62px) !important;
    line-height: .88 !important;
  }
  .teky-home-hero .hero-copy h1 strong { -webkit-text-stroke-width: 1px !important; }
  .teky-home-hero .hero-copy > p:not(.hero-kicker) {
    max-width: 92% !important;
    margin-bottom: 24px !important;
    font-size: 14px !important;
  }
  .teky-home-hero .wp-block-buttons {
    width: 100% !important;
    gap: 10px !important;
  }
  .teky-home-hero .wp-block-button { flex: 1 1 150px !important; }
  .teky-home-hero .wp-block-button__link {
    width: 100% !important;
    min-height: 44px !important;
    padding: 11px 15px !important;
    font-size: 13px !important;
  }
  .teky-home-hero .hero-frame img { object-position: 62% center !important; }

  /* General home spacing */
  .teky-section { padding-block: 70px !important; }
  .teky-section-heading { max-width: 100% !important; margin-bottom: 32px !important; }
  .teky-section-heading h2,
  .teky-about-copy h2 {
    font-size: clamp(36px,10vw,48px) !important;
    line-height: .98 !important;
  }
  .teky-section-heading h2:after { width: 92px !important; margin-top: 16px !important; }
  .teky-section-heading > p { font-size: 14px !important; }

  /* Category list becomes compact cards instead of desktop rows. */
  .teky-category-list { border-top: 0 !important; display: grid !important; gap: 10px !important; }
  .teky-category-row {
    min-height: 0 !important;
    padding: 14px !important;
    display: grid !important;
    grid-template-columns: 34px 68px minmax(0,1fr) 38px !important;
    grid-template-areas:
      "num image title arrow"
      "num image desc arrow" !important;
    gap: 5px 12px !important;
    border: 1px solid rgba(5,7,8,.10) !important;
    border-radius: 12px !important;
    background: rgba(255,255,255,.7) !important;
  }
  .teky-category-row:hover { padding: 14px !important; }
  .teky-category-row .category-number { grid-area: num; align-self: start; padding-top: 5px; }
  .teky-category-row .wp-block-image {
    grid-area: image;
    width: 66px !important;
    height: 66px !important;
    align-self: center !important;
  }
  .teky-category-row .wp-block-image img { width: 54px !important; height: 54px !important; }
  .teky-category-row h3 { grid-area: title; align-self: end; font-size: 18px !important; line-height: 1.05 !important; }
  .teky-category-row > p:not(.category-number):not(:last-child) {
    grid-area: desc;
    align-self: start;
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }
  .teky-category-row > p:last-child { grid-area: arrow; align-self: center; }
  .teky-category-row .round-arrow { width: 34px !important; height: 34px !important; font-size: 15px !important; }

  .teky-about-feature {
    padding-bottom: 72px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .teky-about-feature .wp-block-image,
  .teky-about-feature .wp-block-image img {
    min-height: 0 !important;
    height: 310px !important;
    border-radius: 16px !important;
  }
  .teky-about-copy > p { font-size: 14px !important; }

  /* Product cards stay two per row on phones, with compact text. */
  .teky-section > .wp-block-query.featured-grid > .wp-block-post-template,
  .related-products .wp-block-query.featured-grid > .wp-block-post-template,
  .wp-block-query.catalog-grid > .wp-block-post-template,
  .teky-ajax-post-template {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 10px !important;
  }
  .product-card.wp-block-group,
  .teky-ajax-product-card { padding: 7px !important; border-bottom-width: 3px !important; }
  .product-card .product-image-wrap,
  .teky-ajax-product-card .product-image-wrap { aspect-ratio: 1 !important; }
  .product-card-copy,
  .teky-ajax-product-card .product-card-copy { padding: 12px 6px 10px !important; }
  .product-card-copy .taxonomy-teky_product_category,
  .teky-ajax-product-card .taxonomy-teky_product_category {
    margin: 0 0 5px !important;
    font-size: 8px !important;
    letter-spacing: .07em !important;
  }
  .product-card-copy h3,
  .teky-ajax-product-card .product-card-copy h3 {
    margin-bottom: 7px !important;
    font-size: 14px !important;
    line-height: 1.12 !important;
  }
  .product-card-copy .wp-block-post-excerpt,
  .teky-ajax-product-card .product-card-copy p { display: none !important; }

  .teky-advantages { padding: 78px 0 74px !important; }
  .teky-advantages .teky-section-heading { margin-bottom: 30px !important; }
  .teky-advantages .teky-section-heading h2 { font-size: 40px !important; }
  .teky-advantages .teky-advantage-grid { grid-template-columns: 1fr !important; gap: 10px !important; }
  .teky-advantages .teky-advantage-card {
    min-height: 0 !important;
    padding: 20px !important;
    grid-template-columns: 58px minmax(0,1fr) !important;
    gap: 15px !important;
  }
  .teky-advantages .teky-advantage-card .hex-icon { width: 52px !important; height: 60px !important; font-size: 13px !important; }
  .teky-advantages .teky-advantage-card h3 { font-size: 18px !important; }
  .teky-advantages .teky-advantage-card p:not(.hex-icon) { font-size: 13px !important; line-height: 1.5 !important; }

  .teky-home-news { padding-block: 74px !important; }
  .teky-home-news .wp-block-post-template { grid-template-columns: 1fr !important; gap: 14px !important; }
  .teky-news-card .wp-block-post-featured-image { height: 220px !important; }
  .teky-news-card h3 { font-size: 22px !important; }

  /* Inner banners */
  .wp-block-cover.inner-banner,
  .wp-block-cover.inner-banner-blog,
  .wp-block-cover.inner-banner-contact {
    height: 510px !important;
    min-height: 510px !important;
  }
  .wp-block-cover.inner-banner .inner-banner-content {
    width: 94% !important;
    padding: 108px 0 42px !important;
    justify-content: flex-end !important;
  }
  .wp-block-cover.inner-banner h1 {
    max-width: 100% !important;
    margin-bottom: 16px !important;
    font-size: clamp(40px,11.5vw,52px) !important;
    line-height: .94 !important;
  }
  .wp-block-cover.inner-banner p:not(.eyebrow) { font-size: 13px !important; }
  .wp-block-cover.inner-banner .wp-block-cover__image-background { object-position: 62% center !important; }

  /* Product archive: sidebar becomes a horizontal category rail. */
  .wp-block-columns.catalog-layout.classic-catalog {
    width: 94% !important;
    padding: 46px 0 76px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  .catalog-layout.classic-catalog > .catalog-sidebar.wp-block-column,
  .catalog-sidebar.wp-block-column,
  .catalog-sidebar.wp-block-column.teky-sticky-ready {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    position: static !important;
  }
  .catalog-sidebar .catalog-sidebar-sticky-inner {
    width: 100% !important;
    overflow: visible !important;
    border-radius: 12px !important;
  }
  .catalog-sidebar .sidebar-heading {
    padding: 14px 14px 8px !important;
    font-size: 17px !important;
  }
  .catalog-sidebar .product-category-list {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 10px 12px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 7px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }
  .catalog-sidebar .product-category-list::-webkit-scrollbar { display: none !important; }
  .catalog-sidebar .product-category-list li {
    flex: 0 0 auto !important;
    border: 0 !important;
  }
  .catalog-sidebar .product-category-list a {
    min-height: 34px !important;
    padding: 8px 11px !important;
    display: block !important;
    border-radius: 999px !important;
    background: #f2f7f9 !important;
    color: #47555c !important;
    font-size: 12px !important;
    white-space: nowrap !important;
  }
  .catalog-sidebar .product-category-list a:before,
  .catalog-sidebar .product-category-list a:after { display: none !important; }
  .catalog-sidebar .product-category-list a.is-active,
  .catalog-sidebar .product-category-list a:hover {
    padding-left: 11px !important;
    background: rgba(22,226,223,.16) !important;
    color: #050708 !important;
  }
  .catalog-query-title { margin-bottom: 18px !important; font-size: 30px !important; }

  /* Product single */
  .product-detail-intro { padding: 102px 0 38px !important; }
  .product-detail-intro .product-intro-inner { width: 94% !important; }
  .product-detail-intro h1 { font-size: clamp(38px,11vw,48px) !important; }
  .product-detail-intro .wp-block-post-excerpt__excerpt { font-size: 14px !important; }
  .product-editor-content.page-width { width: 94% !important; padding: 42px 0 72px !important; }
  .teky-product-summary { grid-template-columns: 1fr !important; gap: 22px !important; }
  .teky-product-gallery {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 8px !important;
  }
  .teky-product-gallery .wp-block-image:first-child { min-height: 340px !important; }
  .teky-product-gallery .wp-block-image { min-height: 115px !important; border-radius: 10px !important; }
  .teky-product-gallery .wp-block-image img { padding: 10px !important; }
  .teky-product-facts { padding: 23px !important; border-radius: 10px !important; }
  .teky-product-facts > p:not(.eyebrow) { font-size: 14px !important; }
  .teky-product-facts li { font-size: 13px !important; }
  .teky-product-tabs { margin-top: 54px !important; }
  .teky-tab-buttons {
    display: flex !important;
    overflow-x: auto !important;
    border-radius: 10px !important;
    scrollbar-width: none !important;
  }
  .teky-tab-buttons::-webkit-scrollbar { display: none !important; }
  .teky-tab-buttons button {
    flex: 0 0 auto !important;
    min-width: 150px !important;
    min-height: 48px !important;
    padding: 9px 12px !important;
    border-right: 1px solid rgba(5,7,8,.08) !important;
    border-bottom: 0 !important;
    font-size: 10px !important;
  }
  .teky-tab-panel { padding: 38px 0 10px !important; }
  .teky-tab-panel > h2:first-child { margin-bottom: 28px !important; font-size: 32px !important; text-align: left !important; }
  .teky-tab-panel > .wp-block-columns { grid-template-columns: 1fr !important; }
  .teky-tab-panel > .wp-block-columns > .wp-block-column { padding: 20px !important; }
  .teky-spec-table .wp-block-columns { padding: 14px 15px !important; }
  .related-products.page-width { padding-bottom: 72px !important; }
  .related-products > h2 { font-size: 32px !important; }

  /* About */
  .about-story-block {
    padding-block: 64px 40px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .about-story-block h2 { font-size: 38px !important; }
  .about-story-block p { font-size: 14px !important; }
  .teky-stats {
    padding-block: 20px !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  .teky-stat {
    padding: 18px 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .teky-stat h3 { font-size: 38px !important; }
  .company-image-block {
    min-height: 0 !important;
    margin-block: 58px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    border-radius: 16px !important;
  }
  .company-image-block .wp-block-image { height: 280px !important; }
  .company-image-block > .wp-block-group { padding: 25px !important; }
  .company-image-block h2 { font-size: 34px !important; }
  .values-grid-block {
    padding-bottom: 70px !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .value-card-block { min-height: 0 !important; padding: 24px !important; }
  .value-card-block .eyebrow { margin-bottom: 34px !important; }

  /* Blog */
  .insights-index { padding-block: 58px !important; }
  .insights-index-heading { gap: 8px !important; }
  .insights-index-heading h2 { font-size: 34px !important; }
  .insights-index .insights-index-row {
    padding: 18px 0 !important;
    grid-template-columns: 104px minmax(0,1fr) !important;
    gap: 12px !important;
  }
  .insights-index .insights-thumb { height: 104px !important; }
  .insights-index .insights-row-copy h2 { font-size: 18px !important; }
  .insights-index .wp-block-post-excerpt { display: none !important; }

  /* Article */
  .article-cover-banner { height: 540px !important; }
  .article-cover-content { width: 94% !important; padding: 110px 0 44px !important; }
  .article-cover-content h1 { font-size: 42px !important; }
  .article-cover-content p { font-size: 13px !important; }
  .article-detail { padding-block: 55px !important; }
  .article-detail .wp-block-post-content > p:first-child { font-size: 18px !important; }
  .article-detail .wp-block-post-content h2 { font-size: 29px !important; }

  /* Contact */
  .contact-page-layout {
    padding-block: 58px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .contact-page-details h2 { font-size: 38px !important; }
  .teky-contact-form { padding: 22px !important; border-radius: 14px !important; }
  .teky-form-row { grid-template-columns: 1fr !important; gap: 12px !important; }

  /* Footer CTA */
  .contact-strip.wp-block-group {
    width: 94% !important;
    min-height: 0 !important;
    padding: 38px 22px !important;
    border-radius: 18px !important;
  }
  .contact-strip .contact-strip-copy h2 { font-size: 36px !important; }
  .site-footer { padding: 50px 3% 24px !important; }
  .site-footer .footer-top { grid-template-columns: 1fr !important; gap: 34px !important; }
  .site-footer .footer-links { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 24px !important; }
  .site-footer .footer-bottom { gap: 10px !important; }

  /* Touch devices should not jump on hover. */
  .product-card:hover,
  .teky-advantage-card:hover,
  .teky-category-row:hover { transform: none !important; }
}

/* Very narrow phones: keep two products but further tighten chrome. */
@media (max-width: 420px) {
  .site-header .wordmark { font-size: 24px !important; }
  .site-header .wp-block-button.pill-button .wp-block-button__link {
    padding: 0 8px !important;
    font-size: 11px !important;
  }
  .site-header .pill-dot { display: none !important; }
  .site-header .language-switcher summary { font-size: 10px !important; }

  .teky-home-hero.alignfull { min-height: 680px !important; }
  .teky-home-hero .hero-copy h1,
  .teky-home-hero .hero-copy .wp-block-heading { font-size: 44px !important; }

  .product-card-copy h3,
  .teky-ajax-product-card .product-card-copy h3 { font-size: 13px !important; }
  .product-card-copy .taxonomy-teky_product_category,
  .teky-ajax-product-card .taxonomy-teky_product_category { font-size: 7px !important; }

  .teky-category-row {
    grid-template-columns: 28px 58px minmax(0,1fr) 32px !important;
    gap: 5px 8px !important;
    padding: 11px !important;
  }
  .teky-category-row:hover { padding: 11px !important; }
  .teky-category-row .wp-block-image { width: 56px !important; height: 56px !important; }
  .teky-category-row .wp-block-image img { width: 46px !important; height: 46px !important; }
  .teky-category-row h3 { font-size: 16px !important; }
  .teky-category-row > p:not(.category-number):not(:last-child) { font-size: 11px !important; }
  .teky-category-row .round-arrow { width: 30px !important; height: 30px !important; }

  .wp-block-cover.inner-banner h1 { font-size: 38px !important; }
  .catalog-query-title { font-size: 27px !important; }
}
