/* JFM_MOBILE_DEEP_20261118A — jewelfmfg.com only; preserve desktop, content and SEO links. */
.mobile-dock { display: none; }

@media (max-width: 760px) {
  body { padding-bottom: 58px; }
  .wrap, .header-in, .hero-in, .hero-copy, .hero-media,
  .journal-main, .article, .pmedia, .pinfo, .results { min-width: 0; }
  .site-header .logo { min-width: 0; flex: 1 1 auto; }
  .site-header .header-act, .site-header .burger { flex: 0 0 auto; }
  .site-header .burger { margin-right: 0; }

  .sec { padding: 44px 0; }
  .sec-head { margin-bottom: 20px; gap: 10px; }
  .sec-head h2, .sec > .wrap > h2 { font-size: 25px; }
  .page-head { padding: 32px 0 26px; }
  .page-head h1 { margin-bottom: 10px; font-size: 28px; line-height: 1.08; }
  .page-head .lead { font-size: 14px; line-height: 1.6; }
  .crumbs { overflow-wrap: anywhere; }

  /* The old single grid track used min-content and clipped the whole hero. */
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 34px 18px 38px; }
  .hero-copy, .hero-media { width: 100%; }
  .hero-copy h1 { margin: 12px 0 16px; font-size: clamp(30px, 8.7vw, 38px); line-height: 1.02; overflow-wrap: anywhere; }
  .hero-copy .lead { font-size: 15px; line-height: 1.58; }
  .hero-cta { gap: 8px; margin: 22px 0 26px; }
  .hero-cta .btn { min-height: 44px; padding: 11px 14px; font-size: 11px; }
  .hero-facts { width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 18px; }
  .hero-facts li { min-width: 0; padding: 0 10px; }
  .hero-facts strong { font-size: 23px; }
  .hero-facts span { font-size: 9px; line-height: 1.35; letter-spacing: .1em; overflow-wrap: anywhere; }
  .hero-media { height: 320px; }
  .hm-tag { max-width: calc(100% - 24px); font-size: 9px; }
  .rail { grid-auto-columns: minmax(154px, 52vw); }
  .rail .pcard-body { padding: 10px; }

  /* Keep the existing two-column catalogue, but tighten its cards. */
  .pgrid, .pgrid-4 { gap: 14px 10px; }
  .pcard-body { padding: 10px 8px; }
  .pcard-body h3 { margin-bottom: 7px; font-size: 14px; line-height: 1.28; }
  .pcard-spec { margin-bottom: 7px; }
  .pcard-price { padding-top: 8px; font-size: 16px; }
  .pcard-sku { margin-bottom: 5px; font-size: 9px; }
  .shop-layout { gap: 16px; padding-top: 22px; }
  .results-bar { gap: 8px; margin-bottom: 16px; }
  .results-bar p { font-size: 12px; }
  .results-bar .sortbox { gap: 6px; font-size: 12px; }
  .results-bar select { max-width: 150px; min-height: 40px; font-size: 16px; }
  .filter-toggle { min-height: 40px; }
  .filters { bottom: 58px; max-height: calc(82vh - 58px); }
  .cat-hero-in { gap: 18px; padding: 28px 18px; }
  .cat-hero h1 { font-size: 28px; }
  .cat-hero-fig { aspect-ratio: 16 / 10; }
  .cat-meta { gap: 18px; margin-top: 18px; }
  .cat-body { padding-top: 22px; }

  /* Bring identity and price cues before a compact product gallery. */
  .product-wrap { display: flex; flex-direction: column; gap: 0; padding-top: 20px; }
  .pinfo { display: contents; }
  .pinfo > .eyebrow, .pinfo > h1 { order: 1; }
  .pinfo > h1 { margin: 5px 0 8px; font-size: 26px; line-height: 1.08; }
  .pinfo > .psku { order: 2; margin: 0 0 10px; }
  .pinfo > .pspec-chips { order: 3; margin: 0 0 12px; }
  .pmedia { order: 4; width: 100%; }
  .pmain { aspect-ratio: 4 / 3; }
  .pmain img { object-fit: contain; }
  .pthumbs { gap: 6px; margin-top: 8px; }
  .pthumb { min-width: 0; aspect-ratio: 1; }
  .pricebox { order: 5; margin-top: 18px; }
  .price-main { font-size: 25px; }
  .tier-table { font-size: 12px; }
  .qty-calc input, .qty-calc select { font-size: 16px; }
  .pcta { order: 6; gap: 8px; margin-top: 14px; }
  .pcta .btn { width: 100%; min-height: 44px; margin: 0; }
  .ptrust { order: 7; gap: 6px; margin-top: 14px; }
  .pblock-in { gap: 24px; }
  .pblock-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pblock-aside .aside-card:last-child { grid-column: 1 / -1; }
  .aside-card { padding: 18px; }

  /* Journal: preserve every link while replacing long single-column cards. */
  .journal-wrap, .article-wrap { gap: 28px; }
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; margin-bottom: 30px; }
  .featcard-lead { grid-column: 1 / -1; grid-template-columns: 1.05fr 1fr; }
  .featcard-lead figure { height: 100%; aspect-ratio: auto; }
  .featcard figure { aspect-ratio: 4 / 3; }
  .featcard div, .featcard-lead div { padding: 12px; }
  .featcard h2, .featcard-lead h2 { margin: 3px 0 0; font-size: 17px; line-height: 1.2; }
  .featcard .fine { display: none; }
  .artlist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; border-top: 0; }
  .artrow { display: flex; flex-direction: column; gap: 10px; padding: 0 0 12px; border: 1px solid var(--line); }
  .artrow figure { order: -1; width: 100%; aspect-ratio: 4 / 3; }
  .artrow-body { padding: 0 10px; }
  .artrow h2 { margin: 3px 0 0; font-size: 16px; line-height: 1.25; }
  .artrow-body > p:last-child { display: none; }
  .journal-side { grid-template-columns: 1fr 1fr; gap: 10px; }
  .journal-side .aside-card:last-child { grid-column: 1 / -1; }
  .article-cover { margin-top: 18px; }
  .article-body { margin-top: 24px; font-size: 16px; line-height: 1.65; }
  .article-body h2 { margin-top: 28px; font-size: 22px; }
  .article-body table { max-width: 100%; overflow-x: auto; }
  .artcta { padding: 20px; }
  .relarticles { grid-template-columns: 1fr 1fr; gap: 12px; }

  .cform { gap: 14px; margin-top: 18px; }
  .cform input, .cform select, .cform textarea,
  .filter-form input, .filter-form select, .quote-form input,
  .quote-form select, .quote-form textarea { font-size: 16px; }
  .cform .btn, .quote-form .btn { min-height: 44px; }
  .contact-wrap, .quote-wrap { gap: 28px; }
  .contact-list li { grid-template-columns: 76px minmax(0, 1fr); }
  .contact-list a { overflow-wrap: anywhere; }

  .assure-in { grid-template-columns: 1fr 1fr; gap: 14px 10px; padding: 20px 18px; }
  .assure-item strong { font-size: 15px; }
  .assure-item span { font-size: 11px; line-height: 1.4; }
  .site-footer { padding-top: 48px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px 16px; padding-bottom: 30px; }
  .f-brand { grid-column: 1 / -1; }
  .f-col a { padding: 3px 0; font-size: 13px; }
  .footer-ref { padding-top: 20px; }
  .footer-bottom { padding: 18px; font-size: 11px; }
  .wa-float { display: none; }
  .mobile-dock {
    position: fixed; z-index: 65; left: 0; right: 0; bottom: 0;
    display: flex; height: 58px; background: #111114; color: #fff;
    border-top: 1px solid #343438;
  }
  .mobile-dock a {
    flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center;
    min-height: 48px; color: #fff; text-decoration: none;
    font-size: 11px; font-weight: 600; letter-spacing: .04em;
  }
  .mobile-dock a + a { border-left: 1px solid #343438; }
  .mobile-dock a:last-child { background: #26372c; }
}

@media (max-width: 360px) {
  .header-in { gap: 9px; }
  .logo-word { font-size: 21px; letter-spacing: .14em; }
  .logo-sub { font-size: 8px; letter-spacing: .15em; }
  .header-act .btn-line { padding: 8px 10px; font-size: 10px; }
  .site-header .burger { width: 36px; height: 36px; }
  .topbar .tb-right { flex-wrap: wrap; gap: 3px 10px; }
  .hero-in { padding-top: 30px; }
  .hero-copy h1 { font-size: 30px; }
  .hero-media { height: 280px; }
  .hero-facts li { padding: 0 7px; }
  .hero-facts strong { font-size: 21px; }
  .hero-cta .btn { padding-left: 11px; padding-right: 11px; font-size: 10px; }
  .pinfo > h1 { font-size: 24px; }
  .featcard h2, .featcard-lead h2 { font-size: 15px; }
  .artrow h2 { font-size: 15px; }
  .pblock-aside, .journal-side { grid-template-columns: 1fr; }
  .pblock-aside .aside-card:last-child, .journal-side .aside-card:last-child { grid-column: auto; }
  .mobile-dock a { font-size: 10px; }
}


/* JFM_LAYOUT_ROUND2_20261119A — remaining mobile type and touch geometry */
@media(max-width:768px){
  input:not([type=hidden]):not(.hp-field),select,textarea{font-size:16px!important}
  body .btn[class][class],body button[class][class],body button:not([class]){min-height:44px!important}
  .burger,#filter-toggle{width:44px;min-width:44px;height:44px;min-height:44px}
  #filter-toggle{width:auto;padding-left:14px;padding-right:14px}
}


/* JFM_MOBILE_RAIL_WRAP_20261119A — wrap product rails into a mobile grid */
@media(max-width:768px){
  .rail{
    grid-auto-flow:row!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    overflow-x:visible!important;
  }
  .rail>.rail-card{width:auto;min-width:0}
}
